FfiStructLayout class

An FfiStructLayout describes the native memory layout of a dart:ffi compound.

See Class.

Constructors

FfiStructLayout({int? size, String? kind, List<FfiStructField>? fields})

Properties

fields ↔ List<FfiStructField>?
The ordered list of fields in the compound layout.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
kind ↔ String?
Whether this compound is a struct or a union. Either "struct" or "union".
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ int?
The total size of the compound in bytes, including padding.
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) → FfiStructLayout?