pub struct NonThreadsafeAlloc { /* private fields */ }Expand description
NonThreadsafeAlloc perfect for single threaded devices
Implementations§
source§impl NonThreadsafeAlloc
impl NonThreadsafeAlloc
sourcepub const fn new(
fast_alloc_param: FastAllocParam,
buddy_alloc_param: BuddyAllocParam
) -> Self
pub const fn new( fast_alloc_param: FastAllocParam, buddy_alloc_param: BuddyAllocParam ) -> Self
see BuddyAlloc::new
Trait Implementations§
source§impl GlobalAlloc for NonThreadsafeAlloc
impl GlobalAlloc for NonThreadsafeAlloc
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given
layout. Read more