wasmtime_instance_export_get function
- @Native<Bool Function(Pointer<
wasmtime_context_t> , Pointer<wasmtime_instance_t> , Pointer<wasm_byte_t> , Size, Pointer<wasmtime_extern_t> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_instance_t>, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<wasmtime_extern_t>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_instance_t> instance, - Pointer<
wasm_byte_t> name, - int name_len,
- Pointer<
wasmtime_extern_t> item,
\brief Get an export by name from an instance.
\param store the store that owns instance
\param instance the instance to lookup within
\param name the export name to lookup
\param name_len the byte length of name
\param item where to store the returned value
Returns nonzero if the export was found, and item is filled in. Otherwise
returns 0.
Doesn't take ownership of any arguments but does return ownership of the #wasmtime_extern_t.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_instance_t>,
ffi.Pointer<ffi.Char>,
ffi.Size,
ffi.Pointer<wasmtime_extern_t>,
)
>()
external bool wasmtime_instance_export_get(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_instance_t> instance,
ffi.Pointer<ffi.Char> name,
int name_len,
ffi.Pointer<wasmtime_extern_t> item,
);