UnionPointer<T extends Union> extension

Extension on Pointer specialized for the type argument Union.

on
Annotations
  • @Since('2.14')

Properties

ref ↔ T
A Dart view of the union referenced by this pointer.
getter/setter pair

Methods

elementAt(int index) Pointer<T>
Pointer arithmetic (takes element size into account).

Operators

operator +(int offset) Pointer<T>
A pointer to the offsetth T after this one.
operator -(int offset) Pointer<T>
A pointer to the offsetth T before this one.
operator [](int index) → T
Creates a reference to access the fields of this union backed by native memory at address + sizeOf<T>() * index.
operator []=(int index, T value) → void
Copies the value union into native memory, starting at address * sizeOf<T>() * index.