Buffer class

Constructors

Buffer({int size: 32 })
Buffer.fromBytes(Uint8List bytes)
Buffer.fromHexStr(String str)

Properties

bytes → Uint8List
read-only
utf8string → String
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addInt8(int v) → dynamic
addInt16({int v, bool bigEndian: true }) → dynamic
addInt32({int v, bool bigEndian: true }) → dynamic
addInt64({int v, bool bigEndian: true }) → dynamic
addUint8(int v) → dynamic
addUint16({int v, bool bigEndian: true }) → dynamic
addUint32({int v, bool bigEndian: true }) → dynamic
addUint64({int v, bool bigEndian: true }) → dynamic
appendBytes(Uint8List bytes) → dynamic
grow() → dynamic
readUint8(int ofst) → int
readUint16({int ofst, bool bigEndian: true }) → int
readUint32({int ofst, bool bigEndian: true }) → int
readUint64({int ofst, bool bigEndian: true }) → int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

random(int count) → Future<Buffer>