pub unsafe extern "C" fn WasmEdge_LoaderSerializeASTModule(
Cxt: *mut WasmEdge_LoaderContext,
ASTCxt: *const WasmEdge_ASTModuleContext,
Buf: *mut WasmEdge_Bytes,
) -> WasmEdge_ResultExpand description
Serialize the WasmEdge_ASTModuleContext into WASM binary.
Serialize the loaded WasmEdge_ASTModuleContext into the WASM binary format.
If the serialization succeeded, this API will allocate a new
WasmEdge_Bytes object and fill into the Buf. The caller owns the
WasmEdge_Bytes object and should call WasmEdge_BytesDelete to destroy
it.
\param Cxt the WasmEdge_LoaderContext. \param ASTCxt the WasmEdge_ASTModuleContext to serialize. \param [out] Buf the WasmEdge_Bytes to fill the serialized WASM binary.
\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error
message.