StructStringValueField<R extends RTypeIntLike> class
A pointer-or-array-to-string-value field. Holds a StringCodec concretely.
- Inheritance
-
- Object
- StructFieldBase<
String> - StructStringValueField
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
tempand identified bykey.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
fallbackifpisnull.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
write(
MemoryPointer< RType> p, String value) → String -
Writes
valueinto this field of the struct atp.override -
writeOr(
MemoryPointer< RType> ? p, String value) → String -
Like write, but does nothing if
pisnull.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited