wasmtime_struct_type_field function
- @Native<Bool Function(Pointer<
wasmtime_struct_type_t> , Size, Pointer<wasmtime_field_type_t> )>(ffi.Pointer<wasmtime_struct_type_t>, ffi.Size, ffi.Pointer<wasmtime_field_type_t>)>()
- Pointer<
wasmtime_struct_type_t> ty, - int index,
- Pointer<
wasmtime_field_type_t> out
\brief Get the field type of a struct type's field by index.
Returns true if index is in-bounds and out is filled in. Returns
false if index is out-of-bounds and out is not modified.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_struct_type_t>,
ffi.Size,
ffi.Pointer<wasmtime_field_type_t>,
)
>()
external bool wasmtime_struct_type_field(
ffi.Pointer<wasmtime_struct_type_t> ty,
int index,
ffi.Pointer<wasmtime_field_type_t> out,
);