wasm_extern_vec_new

Function wasm_extern_vec_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wasm_extern_vec_new( out: &mut wasm_extern_vec_t, size: usize, ptr: *const Option<Box<wasm_extern_t>>, )
Expand description

Creates an new wasm_extern_vec_t with the given size and ptr data.

§Note

  • The ptr must point to a buffer of length size or larger.
  • Returns the resulting wasm_extern_vec_t in out.

§Safety

It is the callers responsibility to provide a valid pair of ptr and size.