wasmi_c_api

Function wasm_frame_vec_new

source
#[no_mangle]
pub unsafe extern "C" fn wasm_frame_vec_new<'a>(
    out: &mut wasm_frame_vec_t<'a>,
    size: usize,
    ptr: *const Option<Box<wasm_frame_t<'a>>>,
)
Expand description

Creates an new wasm_frame_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_frame_vec_t in out.

§Safety

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