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