Packer class

Constructors

Packer([int _bufSize = 64])
Provide the _bufSize size, that minimal enough to fit your most used data packets. Try to find balance, small buffer is good, and if most of your data will fit to it, performance will be good. If buffer not enough it will be increased automatically.

Properties

hashCode int
The hash code for this object.
no setterinherited
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
packBinary(List<int> buffer) → void
packBinaryFixedLength(int length, List<int> buffer) → void
packBinaryFixedLengthOptional(int length, List<int>? buffer) → void
packBinaryOptional(List<int>? buffer) → void
packBool(bool v) → void
packBoolOptional(bool? v) → void
Pack bool or null.
packDouble(double v) → void
packDoubleOptional(double? v) → void
packFloat(double v) → void
packFloatOptional(double? v) → void
packInt(Int64 v) → void
packInt16(int v) → void
packInt16Optional(int? v) → void
packInt32(int v) → void
packInt32Optional(int? v) → void
packInt64(Int64 v) → void
packInt64Optional(Int64? v) → void
Pack int or null.
packInt8(int v) → void
packInt8Optional(int? v) → void
packIntOptional(Int64? v) → void
packLength(int length) → void
packNonNull() → void
packNull() → void
Explicitly pack null value. Other packXXX implicitly handle null values.
packString(String v) → void
packStringOptional(String? v) → void
packUint(Int64 v) → void
packUint16(int v) → void
packUint16Optional(int? v) → void
packUint32(int v) → void
packUint32Optional(int? v) → void
packUint64(Int64 v) → void
packUint64Optional(Int64? v) → void
packUint8(int v) → void
packUint8Optional(int? v) → void
packUintOptional(Int64? v) → void
printBytes() → void
takeBytes() Uint8List
toString() String
A string representation of this object.
inherited

Operators

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