dep-protobuf/rust/cpp_kernel/rust_alloc_for_cpp_api.h
Protobuf Team Bot 419760f873 Split up cpp_api.h/.cc into smaller units.
PiperOrigin-RevId: 647663342
2024-06-28 06:54:35 -07:00

11 lines
411 B
C

#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`.
extern "C" void* __pb_rust_alloc(size_t size, size_t align);
#endif // GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__