BufferWriter class

Class for writing data to a byte buffer.

Mirrors BufferReader and produces little-endian bytes matching the Python struct formats used by the .pose file format.

Constructors

BufferWriter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of bytes written so far.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packBytes(List<int> bytes) → void
Appends raw bytes to the buffer.
packFloat(double value) → void
Packs a 32-bit float (<f).
packFloats(dynamic data) → void
Packs a (possibly nested) list of numbers as little-endian float32 in row-major order. Accepts scalars, or arbitrarily nested Lists of num.
packStr(String s) → void
Packs a string as a ushort length prefix followed by its UTF-8 bytes (<H%ds).
packUInt(int value) → void
Packs a 32-bit unsigned integer (<I).
packUShort(int value) → void
Packs a 16-bit unsigned short (<H).
packUShorts(List<int> values) → void
Packs a sequence of unsigned shorts (e.g. <HH, <HHH).
toBytes() → Uint8List
Returns the accumulated bytes.
toString() → String
A string representation of this object.
inherited

Operators

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