wasmtime_component_deserialize_file function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasm_engine_t> engine, Pointer<wasm_byte_t> path, Pointer<Pointer< component_out)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Pointer<wasmtime_component_t>>)>()wasmtime_component_t> >
- Pointer<
wasm_engine_t> engine, - Pointer<
wasm_byte_t> path, - Pointer<
Pointer< component_outwasmtime_component_t> >
\brief Deserialize a component from an on-disk file.
This function is the same as #wasmtime_component_deserialize except that it reads the data for the serialized component 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 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.Char>,
ffi.Pointer<ffi.Pointer<wasmtime_component_t>>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_component_deserialize_file(
ffi.Pointer<wasm_engine_t> engine,
ffi.Pointer<ffi.Char> path,
ffi.Pointer<ffi.Pointer<wasmtime_component_t>> component_out,
);