#[no_mangle]
pub unsafe extern "C" fn wasm_byte_vec_new(
out: &mut wasm_byte_vec_t,
size: usize,
ptr: *const u8,
)
Expand description
Creates an new wasm_byte_vec_t
with the given size
and ptr
data.
§Note
- The
ptr
must point to a buffer of lengthsize
or larger. - Returns the resulting
wasm_byte_vec_t
inout
.
§Safety
It is the callers responsibility to provide a valid pair of ptr
and size
.