Skip to main content

alloc

Function alloc 

Source
pub fn alloc(len: usize) -> *mut u8
Expand description

The body of {prefix}_alloc: allocate a zero-filled run of len bytes the consumer fills, released with free_bytes (the same len) or handed to the producer, which adopts it. A len of 0 returns null, which is the empty run.