wasmtime_component_deserialize function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasm_engine_t>, Pointer<Uint8>, Size, Pointer<Pointer<wasmtime_component_t>>)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Pointer<wasmtime_component_t>>)>()
Pointer<wasmtime_error_t> wasmtime_component_deserialize(
  1. Pointer<wasm_engine_t> engine,
  2. Pointer<Uint8> buf,
  3. int len,
  4. Pointer<Pointer<wasmtime_component_t>> component_out,
)

\brief Build a component from serialized data.

This function does not take ownership of any of its arguments, but the returned error and component 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_component_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_component_t>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_component_deserialize(
  ffi.Pointer<wasm_engine_t> engine,
  ffi.Pointer<ffi.Uint8> buf,
  int len,
  ffi.Pointer<ffi.Pointer<wasmtime_component_t>> component_out,
);