BinaryFrameAccumulator class
Incrementally accumulates binary protocol bytes and yields complete frames.
Constructors
- BinaryFrameAccumulator({int maxFrameBytes = defaultMaxFrameBytes})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
no setter
- maxFrameBytes → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Uint8List chunk) → void -
drainFrames(
) → Iterable< Uint8List> -
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
Constants
- defaultMaxFrameBytes → const int
-
Hard ceiling for a single frame to prevent OOM from a malformed header.
Matches the result-buffer ceiling used by
ConnectionOptions(16 MB). Frames legitimately larger than this should fail loudly rather than trigger a multi-gigabyte allocation.