#[no_mangle]
pub unsafe extern "C" fn wat2wasm(
    wat: &wasm_byte_vec_t,
    out: &mut wasm_byte_vec_t
)
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.