ReadBuf class final
A mutable read target with a filled/capacity split.
Readers write into unfilled and call advance, so wrappers do not need to allocate a second buffer or copy twice.
Properties
- buffer → Uint8List
-
no setter
- capacity → int
-
no setter
- filled → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRemaining → bool
-
no setter
- remaining → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unfilled → Uint8List
-
View of bytes
[filled, capacity).no setter
Methods
-
advance(
int n) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited