StructPointerArrayField<E, R extends RType> class

A pointer to a variable-length run of E, length is runtime-only, so there's no plain read/write; callers must supply the count they know about externally via readCount/writeCount.

Inheritance
Available extensions

Constructors

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

Properties

codec → PointerCodec<E, R>
Codec used to dereference the field's pointer and convert elements between E and their native representation 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 StructPointerArrayField<E, R>, provided by the LivePointerArrayFieldX extension

liveNested(MemoryPointer<RType>? ptrOf(), List<List<E>> initial) → StructLiveList<StructLiveList<E, R>, RPointer<R>>

Available on StructPointerArrayField<E, RPointer<R>>, provided by the LivePointerPointerArrayFieldX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(MemoryPointer<RType> p) → List<E>
Reads this field's value from the struct at p.
override
readCount(MemoryPointer<RType> p, int count, [List<E>? fallback]) → List<E>
Reads count elements from the array this field points to, within the struct at p.
readCountOr(MemoryPointer<RType>? p, int count, [List<E>? fallback]) → List<E>
Like readCount, but returns fallback (or an empty list if it is null) when the struct pointer p is null.
readOr(MemoryPointer<RType>? p, List<E> fallback) → List<E>
Like read, but returns fallback if p is null.
inherited
toString() → String
A string representation of this object.
inherited
write(MemoryPointer<RType> p, List<E> value) → List<E>
Writes value into this field of the struct at p.
override
writeCount(MemoryPointer<RType> p, List<E> values) → List<E>
Writes values into the array this field points to, within the struct at p. The pointed-to memory must already be allocated with room for at least values.length elements (see allocate).
writeCountIf(MemoryPointer<RType>? p, List<E> values) → List<E>
Like writeCount, but does nothing if the struct pointer p is null.
writeOr(MemoryPointer<RType>? p, List<E> value) → List<E>
Like write, but does nothing if p is null.
inherited

Operators

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