StructPointer<T extends Struct> extension
Extension on Pointer specialized for the type argument Struct.
- on
-
- Pointer<
T>
- Pointer<
- @Since('2.12')
Properties
- ref ↔ T
-
Available on Pointer<
A Dart view of the struct referenced by this pointer.T> , provided by the StructPointer extensiongetter/setter pair
Methods
-
elementAt(
int index) → Pointer< T> -
Available on Pointer<
Pointer arithmetic (takes element size into account)T> , provided by the StructPointer extension
Operators
-
operator +(
int offset) → Pointer< T> -
Available on Pointer<
A pointer to theT> , provided by the StructPointer extensionoffset
thT
after this one. -
operator -(
int offset) → Pointer< T> -
Available on Pointer<
A pointer to theT> , provided by the StructPointer extensionoffset
thT
before this one. -
operator [](
int index) → T -
Available on Pointer<
Creates a reference to access the fields of this struct backed by native memory atT> , provided by the StructPointer extensionaddress + sizeOf<T>() * index
. -
operator []=(
int index, T value) → void -
Available on Pointer<
Copies theT> , provided by the StructPointer extensionvalue
struct into native memory, starting ataddress * sizeOf<T>() * index
.