Skip to main content

runtime_new_byte_array

Function runtime_new_byte_array 

Source
pub extern "C" fn runtime_new_byte_array(size: i64) -> i64
Expand description

Allocate a new mutable byte array of size bytes, zeroed. Layout: [u64 length][u8 bytes…] Returns a raw pointer to the allocation (caller stores in Lit value slot).