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
Properties
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