RecordReader class
Streaming binary reader for @HybridRecord types (web edge).
Counterpart to RecordWriter. Wraps framed bytes copied out of the WASM module heap.
- Inheritance
-
- Object
- RecordReaderBase
- RecordReader
Constructors
- RecordReader.fromFramedBytes(Uint8List framed, [int payloadOffset = 0])
-
Wraps framed bytes (
[4B len][payload]) without further copying, optionally positioned atpayloadOffsetwithin the payload. - RecordReader.fromPayload(Uint8List payload, [int pos = 0])
-
Positions the reader at
poswithin an unframed payload.
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
-
readBlob(
) → Uint8List -
inherited
-
readBool(
) → bool -
inherited
-
readDouble(
) → double -
inherited
-
readFloat64(
) → double -
inherited
-
readInt(
) → int -
inherited
-
readInt32(
) → int -
inherited
-
readInt64(
) → int -
inherited
-
readInt8(
) → int -
inherited
-
readNullTag(
) → bool -
Returns
trueif the next value is null (tag byte == 0).inherited -
readString(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decodeIndexedListBytes<
T> (Uint8List framed, T readItem(RecordReader r)) → List< T> -
Decodes an indexed list (
[4B count][8B×n offsets][items]) eagerly. -
decodeListBytes<
T> (Uint8List framed, T readItem(RecordReader r)) → List< T> - Decodes a list of @HybridRecord objects from framed bytes.
-
decodeNullableListBytes<
T> (Uint8List framed, T readItem(RecordReader r)) → List< T?> - Decodes a list of nullable items from framed bytes.
-
decodePrimitiveListBytes<
T> (Uint8List framed, T readItem(RecordReader r)) → List< T> - Decodes a list of primitives from framed bytes.