StructStringValueField<R extends RTypeIntLike> class

A pointer-or-array-to-string-value field. Holds a StringCodec concretely.

Inheritance

Constructors

StructStringValueField(int offset, StringCodec<R> codec)
const

Properties

codec → StringCodec<R>
Codec used to convert between String and its native representation.
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(MemoryPointer<RType> p) → String
Reads this field's value from the struct at p.
override
readBounded(MemoryPointer<RType> p, int maxLength) → String
readOr(MemoryPointer<RType>? p, String fallback) → String
Like read, but returns fallback if p is null.
inherited
toString() → String
A string representation of this object.
inherited
write(MemoryPointer<RType> p, String value) → String
Writes value into this field of the struct at p.
override
writeOr(MemoryPointer<RType>? p, String value) → String
Like write, but does nothing if p is null.
inherited

Operators

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