| // Copyright 2025 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef BUILD_RUST_STD_ALLOCATOR_IMPLS_H_ |
| #define BUILD_RUST_STD_ALLOCATOR_IMPLS_H_ |
| #include "build/build_config.h" |
| #include "build/rust/std/buildflags.h" |
| namespace rust_allocator_internal { |
| unsigned char* alloc(size_t size, size_t align); |
| void dealloc(unsigned char* p, size_t size, size_t align); |
| unsigned char* realloc(unsigned char* p, |
| unsigned char* alloc_zeroed(size_t size, size_t align); |
| } // namespace rust_allocator_internal |
| #endif // BUILD_RUST_STD_ALLOCATOR_IMPLS_H_ |