UnionPointer extension - dart:ffi library (original) (raw)
UnionPointer<T extends Union> extension
Extension on Pointer specialized for the type argument Union.
on
- Pointer<T>
Annotations
- @Since('2.14')
Properties
ref ↔ T
Available on Pointer<T>, provided by the UnionPointer extension
A Dart view of the union referenced by this pointer.
getter/setter pair
Methods
elementAt(int index)→ Pointer<T>
Available on Pointer<T>, provided by the UnionPointer extension
Pointer arithmetic (takes element size into account).
refWithFinalizer(Pointer<NativeFinalizerFunction> finalizer, {Pointer<Void>? token})→ T
Available on Pointer<T>, provided by the UnionPointer extension
A Dart view of the union referenced by this pointer.
Operators
operator +(int offset)→ Pointer<T>
Available on Pointer<T>, provided by the UnionPointer extension
A pointer to the offset
th T
after this one.
operator -(int offset)→ Pointer<T>
Available on Pointer<T>, provided by the UnionPointer extension
A pointer to the offset
th T
before this one.
operator [](int index)→ T
Available on Pointer<T>, provided by the UnionPointer extension
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
Available on Pointer<T>, provided by the UnionPointer extension
Copies the value
union into native memory, starting ataddress * sizeOf<T>() * index
.