Packs and unpacks the 5-byte gRPC message prefix: one compression-flag byte (0 or 1), then the payload length as a big-endian uint32.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode(
Uint8List messageBytes, {bool compressed = false}) → Uint8List -
Prefixes
messageByteswith the 5-byte gRPC frame header. -
parseHeader(
Uint8List headerBytes) → RpcMessageHeader - Reads compression and length out of a 5-byte gRPC prefix.