Skip to main content

runtime_resize_byte_array

Function runtime_resize_byte_array 

Source
pub extern "C" fn runtime_resize_byte_array(
    ba: i64,
    new_size: i64,
) -> i64
Expand description

Resize a mutable byte array. Allocates a new buffer, copies existing data, zeroes any new bytes, and frees the old buffer. Returns the new pointer.