DocCursor class final
Forward cursor over the fields of a DocView.
A cursor never allocates and never decodes a value it is not asked for. For a length-prefixed field the payload length is known immediately, so the payload can be sliced without parsing it.
Properties
- bytes → Uint8List
-
The document buffer this cursor walks, for verbatim copies.
no setter
- entryOffset → int
-
Offset of the key byte of the current entry.
no setter
- fieldId → int
-
Field id of the current entry.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- intValue → int
-
Decoded varint value when wireType is VxsWire.varint.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueLength → int
-
Length of the encoded value.
no setter
- valueOffset → int
-
Offset of the encoded value (after the key and length prefix).
no setter
- valueRawEnd → int
-
Offset just past the encoded value (start of the next entry).
no setter
- valueRawOffset → int
-
Offset just past the key byte.
no setter
- wireType → int
-
Wire type of the current entry.
no setter
Methods
-
next(
) → bool -
Advances to the next field. Returns
falseat the end of the document. -
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