2024-06-28 06:52:26 -07:00
|
|
|
#ifndef GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
|
|
|
|
|
#define GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
|
|
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
|
|
// Allocates memory using the current Rust global allocator.
|
|
|
|
|
//
|
|
|
|
|
// This function is defined in `rust_alloc_for_cpp_api.rs`.
|
2024-07-02 11:42:07 -07:00
|
|
|
extern "C" void* proto2_rust_alloc(size_t size, size_t align);
|
2024-06-28 06:52:26 -07:00
|
|
|
|
|
|
|
|
#endif // GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
|