Function wasmer::wasm_c_api::wat::wat2wasm

source ·
#[no_mangle]
pub unsafe extern "C" fn wat2wasm(
    wat: &wasm_byte_vec_t,
    out: &mut wasm_byte_vec_t
)
Available on crate feature wat only.
Expand description

Parses in-memory bytes as either the WAT format, or a binary Wasm module. This is wasmer-specific.

In case of failure, wat2wasm sets the out->data = NULL and out->size = 0.

§Example

See the module’s documentation.

§Safety

This function is unsafe in order to be callable from C.