pub struct BuddyAllocator<const CCOUNT: usize>(SyncImplRef<BuddyInner<CCOUNT>>);Expand description
The real allocator provided to the Rust. A wrapper.
Tuple Fields§
§0: SyncImplRef<BuddyInner<CCOUNT>>Implementations§
Trait Implementations§
Source§impl<const CCOUNT: usize> Default for BuddyAllocator<CCOUNT>
impl<const CCOUNT: usize> Default for BuddyAllocator<CCOUNT>
Source§impl<const CCOUNT: usize> GlobalAlloc for BuddyAllocator<CCOUNT>
impl<const CCOUNT: usize> GlobalAlloc for BuddyAllocator<CCOUNT>
1.28.0§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc, but also ensures that the contents
are set to zero before being returned. Read more