Manifest class final

Immutable description of the database contents.

A manifest is written whole: two fixed slots alternate, each carrying a monotonically increasing generation. Opening picks the valid slot with the highest generation, so a torn write can only ever lose the newest transaction, never corrupt an older state.

Constructors

Manifest({required int generation, required List<SegmentInfo> segments})
Creates a manifest.

Properties

generation → int
Monotonic generation.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → List<SegmentInfo>
Segments in write order (oldest first).
final

Methods

encode() → Uint8List
Serializes the manifest.
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

decode(Uint8List bytes) → Manifest
Parses a manifest. Throws VxsFormatException when invalid.