Struct sel4_dlmalloc::DlmallocGlobalAlloc
source · pub struct DlmallocGlobalAlloc<R, T> { /* private fields */ }
Implementations§
source§impl<R, T> DlmallocGlobalAlloc<R, StaticDlmallocAllocator<T>>
impl<R, T> DlmallocGlobalAlloc<R, StaticDlmallocAllocator<T>>
Trait Implementations§
source§impl<R: RawMutex, T: DlmallocAllocator> GlobalAlloc for DlmallocGlobalAlloc<R, T>
impl<R: RawMutex, T: DlmallocAllocator> GlobalAlloc for DlmallocGlobalAlloc<R, T>
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moresource§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