pub unsafe extern "C" fn WasmEdge_VMLoadWasmFromBuffer(
    Cxt: *mut WasmEdge_VMContext,
    Buf: *const u8,
    BufLen: u32
) -> WasmEdge_Result
Expand description

Load the WASM module from a buffer.

This is the first step to invoke a WASM function step by step. Load and parse the WASM module from a buffer. You can then call WasmEdge_VMValidate for the next step.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext. \param Buf the buffer of WASM binary. \param BufLen the length of the buffer.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.