• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
2 #define GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
3 
4 #include <cstddef>
5 
6 // Allocates memory using the current Rust global allocator.
7 //
8 // This function is defined in `rust_alloc_for_cpp_api.rs`.
9 extern "C" void* proto2_rust_alloc(size_t size, size_t align);
10 
11 #endif  // GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__
12