Skip to main content

host_alloc

Function host_alloc 

Source
pub fn host_alloc(len: u32) -> u32
Expand description

Allocate len bytes in the module’s linear memory and return the pointer as a u32. Returns 0 for a zero-length request.