Function plugin_alloc
Source pub fn plugin_alloc(size: i32) -> i32
Expand description
Allocate memory in the Wasm linear memory
WASM32 only. Pointer is returned as i32 (32-bit address).
§Returns
- Pointer to allocated memory as
i32
0 (null pointer) on allocation failure or invalid size
§Safety
This function is safe to call from the host.