wasmtime_struct_type_field function

  1. @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>)>()
bool wasmtime_struct_type_field(
  1. Pointer<wasmtime_struct_type_t> ty,
  2. int index,
  3. 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,
);