ProtocolByteAccumulator class

Single reusable buffer for incremental protocol framing.

Incoming stream chunks are appended once; take materializes a frame copy before the buffer is reused on the next add.

Constructors

ProtocolByteAccumulator({int initialCapacity = 64 * 1024})

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Uint8List chunk) → void
drop(int count) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek(int count) Uint8List
take(int count) Uint8List
toString() String
A string representation of this object.
inherited

Operators

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