twizzler_rt_abi::alloc

Function twz_rt_malloc

source
pub fn twz_rt_malloc(layout: Layout, flags: AllocFlags) -> Option<*mut u8>
Expand description

Allocate runtime memory with the given layout and flags. Returns None on allocation failure.

ยงFlags

  • ZERO_MEMORY: Zero the newly-allocated memory before returning it to the user.