Skip to main content

xila_heap_allocate

Function xila_heap_allocate 

Source
pub unsafe extern "C" fn xila_heap_allocate(
    heap: *mut Heap,
    size: usize,
    allocation: *mut *mut c_void,
) -> Status
Expand description

Allocate uninitialized bytes. A zero-size request reserves one byte.

ยงSafety

Heap must be live and exclusively accessed. Output must be aligned, writable and disjoint from the heap and its allocations.