pub unsafe extern "C" fn WasmEdge_CompilerCompileFromBuffer(
    Cxt: *mut WasmEdge_CompilerContext,
    InBuffer: *const u8,
    InBufferLen: u64,
    OutPath: *const c_char
) -> WasmEdge_Result
Expand description

Compile the input WASM from the given buffer.

The compiler compiles the WASM from the given buffer for the ahead-of-time mode and store the result to the output file path.

\param Cxt the WasmEdge_CompilerContext. \param InBuffer the input WASM binary buffer. \param InBufferLen the length of the input WASM binary buffer. \param OutPath the output WASM file path.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.