wasmtime_config_cache_config_load function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasm_config_t> arg0, Pointer<wasm_byte_t> arg1)>(ffi.Pointer<wasm_config_t>, ffi.Pointer<ffi.Char>)>()
Pointer<wasmtime_error_t> wasmtime_config_cache_config_load(
  1. Pointer<wasm_config_t> arg0,
  2. Pointer<wasm_byte_t> arg1
)

\brief Enables Wasmtime's cache and loads configuration from the specified path.

By default the Wasmtime compilation cache is disabled. The configuration path here can be NULL to use the default settings, and otherwise the argument here must be a file on the filesystem with TOML configuration - https://bytecodealliance.github.io/wasmtime/cli-cache.html.

An error is returned if the cache configuration could not be loaded or if the cache could not be enabled.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasm_config_t>,
    ffi.Pointer<ffi.Char>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_config_cache_config_load(
  ffi.Pointer<wasm_config_t> arg0,
  ffi.Pointer<ffi.Char> arg1,
);