StructPointer<T extends Struct> extension
Extension on Pointer specialized for the type argument Struct.
- on
-
- Pointer<
T>
- Pointer<
- @Since('2.12')
Properties
- ref ↔ T
-
A Dart view of the struct referenced by this pointer.
getter/setter pair
Methods
Operators
-
operator +(
int offset) → Pointer< T> -
A pointer to the
offsetthTafter this one. -
operator -(
int offset) → Pointer< T> -
A pointer to the
offsetthTbefore this one. -
operator [](
int index) → T -
Creates a reference to access the fields of this struct backed by native
memory at
address + sizeOf<T>() * index. -
operator []=(
int index, T value) → void -
Copies the
valuestruct into native memory, starting ataddress * sizeOf<T>() * index.