Function ft_sys::memory::alloc

source ·
#[no_mangle]
pub fn alloc(len: i32) -> i32
Expand description

Allocate memory into the wasm linear memory and return the offset to the start of the block.

§Safety

This function is unsafe because it dereferences the pointer. There is no way to make this function unsafe.