On this page
StructPointer<T extends Struct> extension
Extension on Pointer specialized for the type argument Struct.
- on
-
- Pointer<
T>
- Pointer<
- @Since('2.12')
Properties
- ref ↔ T
read / write
- A Dart view of the struct referenced by this pointer.
Operators
- 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
value
struct into native memory, starting ataddress * sizeOf<T>() * index
.
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-ffi/StructPointer.html