wasmtime_module_deserialize function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasm_engine_t>, Pointer<Uint8>, Size, Pointer<Pointer<wasmtime_module_t>>)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Pointer<wasmtime_module_t>>)>()
Pointer<wasmtime_error_t> wasmtime_module_deserialize(
  1. Pointer<wasm_engine_t> engine,
  2. Pointer<Uint8> bytes,
  3. int bytes_len,
  4. Pointer<Pointer<wasmtime_module_t>> ret,
)

\brief Build a module from serialized data.

This function does not take ownership of any of its arguments, but the returned error and module are owned by the caller.

This function is not safe to receive arbitrary user input. See the Rust documentation for more information on what inputs are safe to pass in here (e.g. only that of wasmtime_module_serialize)

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasm_engine_t>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
    ffi.Pointer<ffi.Pointer<wasmtime_module_t>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_module_deserialize(
  ffi.Pointer<wasm_engine_t> engine,
  ffi.Pointer<ffi.Uint8> bytes,
  int bytes_len,
  ffi.Pointer<ffi.Pointer<wasmtime_module_t>> ret,
);