BlockReader class final
Reads and validates a block of VXS documents.
Constructors
- BlockReader(Uint8List buffer, {int offset = 0, int? length, bool verifyChecksum = true})
-
Parses a block starting at
offset;lengthdefaults to the rest ofbuffer.factory
Properties
- buffer → Uint8List
-
Backing bytes.
final
- docCount → int
-
Number of documents, obtained by scanning.
no setter
- flags → int
-
Header flags.
final
- hasChecksum → bool
-
Whether the block carries a checksum.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerOffset → int
-
Offset of the block header inside buffer.
final
- payloadEnd → int
-
Offset one past the last document.
final
- payloadLength → int
-
Payload size in bytes.
no setter
- payloadStart → int
-
Offset of the first document.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
docAt(
int relativeOffset) → DocView -
Parses the document that starts
relativeOffsetbytes into the payload. -
forEach(
void visit(DocView document)) → void - Visits every document in order.
-
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