SessionChunk class final
One chunk read off the session file: records oldest-first plus the file facts the window cache needs (staleness re-anchors, "N above" labels).
Constructors
-
SessionChunk({required List<
SessionChunkEntry> entries, required int fileSize, required int fileMtimeMs, required bool hasOlder, required int limitOffset}) -
const
Properties
- endOffset → int
-
Byte offset just past the scanned range — where live-tail ingest
resumes (a line boundary).
no setter
-
entries
→ List<
SessionChunkEntry> -
Parsed records, oldest first. Torn (unparseable) lines are skipped.
final
- fileMtimeMs → int
-
File mtime (ms since epoch) at read time.
final
- fileSize → int
-
File size (bytes) at read time.
final
- firstOffset → int
-
Byte offset of the first (oldest) record — limitOffset when empty.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasOlder → bool
-
Whether at least one record exists above the first entry's offset —
the "more above" signal while the exact count is still unknown.
final
- isEmpty → bool
-
no setter
- limitOffset → int
-
Exclusive end of the scan that produced this chunk (the anchor for
readBefore, EOF forreadTail/readForward) — the ingest cursor.final - 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