wasmtime_config_host_memory_creator_set function
- @Native<Void Function(Pointer<
wasm_config_t> , Pointer<wasmtime_memory_creator_t> )>(ffi.Pointer<wasm_config_t>, ffi.Pointer<wasmtime_memory_creator_t>)>()
- Pointer<
wasm_config_t> arg0, - Pointer<
wasmtime_memory_creator_t> arg1
Sets a custom memory creator.
Custom memory creators are used when creating host Memory objects or when creating instance linear memories for the on-demand instance allocation strategy.
The config does not take ownership of the #wasmtime_memory_creator_t passed in, but instead copies all the values in the struct.
For more information see the Rust documentation at https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.with_host_memory
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Pointer<wasm_config_t>,
ffi.Pointer<wasmtime_memory_creator_t>,
)
>()
external void wasmtime_config_host_memory_creator_set(
ffi.Pointer<wasm_config_t> arg0,
ffi.Pointer<wasmtime_memory_creator_t> arg1,
);