wasmtime_module_deserialize_file function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasm_engine_t> engine, Pointer<wasm_byte_t> path, Pointer<Pointer<wasmtime_module_t>> ret)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Pointer<wasmtime_module_t>>)>()
Pointer<wasmtime_error_t> wasmtime_module_deserialize_file(
  1. Pointer<wasm_engine_t> engine,
  2. Pointer<wasm_byte_t> path,
  3. Pointer<Pointer<wasmtime_module_t>> ret
)

\brief Deserialize a module from an on-disk file.

This function is the same as #wasmtime_module_deserialize except that it reads the data for the serialized module from the path on disk. This can be faster than the alternative which may require copying the data around.

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.Char>,
    ffi.Pointer<ffi.Pointer<wasmtime_module_t>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_module_deserialize_file(
  ffi.Pointer<wasm_engine_t> engine,
  ffi.Pointer<ffi.Char> path,
  ffi.Pointer<ffi.Pointer<wasmtime_module_t>> ret,
);