ContiguousCodec<E, R extends RType> mixin

Opt-in capability for codecs whose values sit at a fixed byte stride, so a contiguous run of them can be read/written in one call. Not every ElementCodec can do this (e.g. StringCodec has no fixed stride), this is deliberately separate from the base contract rather than forced on every codec.

Superclass constraints

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → R
finalinherited

Methods

allocate(RaylibTemp<RaylibBase> temp, MemoryPointer<RType> p, String key, {int count = 1, bool raw = false}) → void
inherited
allocator(RaylibTemp<RaylibBase> temp) → RaylibTempAllocator<RType>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(MemoryPointer<RType> p) → E
inherited
readArray(MemoryPointer<RType> p, int count) → List<E>
toString() → String
A string representation of this object.
inherited
write(MemoryPointer<RType> p, E value) → void
inherited
writeArray(MemoryPointer<RType> p, List<E> values) → void

Operators

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