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
-
- Object
- StructFieldBase<
List< E> > - StructPointerArrayField
- 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
Eand their native representationR.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
tempand identified bykey.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< initial) → StructLiveList<E> >StructLiveList< E, R> , RPointer<R> > -
Available on StructPointerArrayField<
E, RPointer< , provided by the LivePointerPointerArrayFieldX extensionR> > -
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
countelements from the array this field points to, within the struct atp. -
readCountOr(
MemoryPointer< RType> ? p, int count, [List<E> ? fallback]) → List<E> -
Like readCount, but returns
fallback(or an empty list if it isnull) when the struct pointerpisnull. -
readOr(
MemoryPointer< RType> ? p, List<E> fallback) → List<E> -
Like read, but returns
fallbackifpisnull.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
write(
MemoryPointer< RType> p, List<E> value) → List<E> -
Writes
valueinto this field of the struct atp.override -
writeCount(
MemoryPointer< RType> p, List<E> values) → List<E> -
Writes
valuesinto the array this field points to, within the struct atp. The pointed-to memory must already be allocated with room for at leastvalues.lengthelements (see allocate). -
writeCountIf(
MemoryPointer< RType> ? p, List<E> values) → List<E> -
Like writeCount, but does nothing if the struct pointer
pisnull. -
writeOr(
MemoryPointer< RType> ? p, List<E> value) → List<E> -
Like write, but does nothing if
pisnull.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited