FfiStructField class

An FfiStructField describes a single member of an FfiStructLayout.

Constructors

FfiStructField({String? name, String? nativeType, int? offset, int? size, int? length, String? arrayElementType, String? kind, List<FfiStructField>? fields})

Properties

arrayElementType ↔ String?
The element type name if this field is an inline Array (e.g. "uint8", "InnerStruct").
getter/setter pair
fields ↔ List<FfiStructField>?
The layout of the nested compound in this field.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
kind ↔ String?
Whether the nested compound described by fields is a struct or a union.
getter/setter pair
length ↔ int?
The number of elements if this field is an inline Array.
getter/setter pair
name ↔ String?
The declared name of the struct field.
getter/setter pair
nativeType ↔ String?
Human-readable native (C-semantics) type name (e.g. "int32", a compound's class name, or "Array").
getter/setter pair
offset ↔ int?
The byte offset of this field from the start of the struct, not from the start of the backing storage.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ int?
The size of this field in bytes.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parse(Map<String, dynamic>? json) → FfiStructField?