wasmtime_instance_pre_instantiate_async function
- @Native<Pointer<
wasmtime_call_future_t> Function(Pointer<wasmtime_instance_pre_t> instance_pre, Pointer<wasmtime_context_t> store, Pointer<wasmtime_instance_t> instance, Pointer<Pointer< trap_ret, Pointer<wasm_trap_t> >Pointer< error_ret)>(ffi.Pointer<wasmtime_instance_pre_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_instance_t>, ffi.Pointer<ffi.Pointer<wasm_trap_t>>, ffi.Pointer<ffi.Pointer<wasmtime_error_t>>)>()wasmtime_error_t> >
- Pointer<
wasmtime_instance_pre_t> instance_pre, - Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_instance_t> instance, - Pointer<
Pointer< trap_ret,wasm_trap_t> > - Pointer<
Pointer< error_ret,wasmtime_error_t> >
\brief Instantiates instance within the given store.
This will also run the function's startup function, if there is one.
For more information on async instantiation see #wasmtime_linker_instantiate_async.
\param instance_pre the pre-initialized instance \param store the store in which to create the instance \param instance where to store the returned instance \param trap_ret where to store the returned trap \param error_ret where to store the returned trap
The trap_ret and error_ret pointers may not be NULL and the returned
memory is owned by the caller.
All arguments to this function must outlive the returned future and be unmodified until the future is deleted.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_call_future_t> Function(
ffi.Pointer<wasmtime_instance_pre_t>,
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_instance_t>,
ffi.Pointer<ffi.Pointer<wasm_trap_t>>,
ffi.Pointer<ffi.Pointer<wasmtime_error_t>>,
)
>()
external ffi.Pointer<wasmtime_call_future_t>
wasmtime_instance_pre_instantiate_async(
ffi.Pointer<wasmtime_instance_pre_t> instance_pre,
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_instance_t> instance,
ffi.Pointer<ffi.Pointer<wasm_trap_t>> trap_ret,
ffi.Pointer<ffi.Pointer<wasmtime_error_t>> error_ret,
);