StructPointerValueField<E, R extends RType> class

A pointer-to-single-value field. Holds a PointerCodec concretely, no casting, since a pointer field's on-struct type genuinely differs from StructValueField's R slot (it's RPointer<R>, not R).

Inheritance
Available extensions

Constructors

StructPointerValueField(int offset, PointerCodec<E, R> codec)
const

Properties

codec → PointerCodec<E, R>
Codec used to convert between E and the pointed-to native value R.
final
hashCode → int
The hash code for this object.
no setterinherited
offset → int
Byte offset of this field from the start of the struct.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocate(RaylibTemp<RaylibBase> temp, MemoryPointer<RType> p, String key, {int count = 1, bool raw = false}) → void
Allocates any backing storage this field needs (e.g. string or array data that the field points to), using temp and identified by key.
override
live(MemoryPointer<RType>? ptrOf(), List<E>? initial) → StructLiveList<E, R>

Available on StructPointerValueField<List<E>, RArray<R>>, provided by the LivePointerFixedArrayFieldX extension

live(MemoryPointer<RType>? ptrOf()) → LivePointerSync<R>

Available on StructPointerValueField<E, R>, provided by the LivePointerSyncFieldX extension

live(MemoryPointer<RType>? ptrOf()) → LivePointerSync<R>

Available on StructPointerValueField<dynamic, R>, provided by the LivePointerUnknownSyncFieldX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(MemoryPointer<RType> p) → E
Reads this field's value from the struct at p.
override
readOr(MemoryPointer<RType>? p, E fallback) → E
Like read, but returns fallback if p is null.
inherited
readSafe(MemoryPointer<RType> p, E fallback) → E
Reads the pointed-to value of this field within the struct at p.
toString() → String
A string representation of this object.
inherited
write(MemoryPointer<RType> p, E value) → E
Writes value into this field of the struct at p.
override
writeOr(MemoryPointer<RType>? p, E value) → E
Like write, but does nothing if p is null.
inherited
writeSafe(MemoryPointer<RType> p, E value) → void
Writes value through this field's pointer within the struct at p.

Operators

operator ==(Object other) → bool
The equality operator.
inherited