Written

data class Written(val offset: Long, val endOffset: Long, val opCount: Int, val insertDots: Set<Dot>) : AppendResult

A frame was written covering [offset, endOffset) of the archive's append-offset space.

Constructors

Link copied to clipboard
constructor(offset: Long, endOffset: Long, opCount: Int, insertDots: Set<Dot>)

Properties

Link copied to clipboard

one past the frame's last byte, i.e. the offset the next frame will occupy. This is the resume cursor for "everything after what I have already consumed".

Link copied to clipboard

the causal dots the frame's Insert ops mint. Insert-only, always: a Remove mints no dot of its own (it reuses its target Insert's id), so this set says nothing about the removes in the frame. See ReplayScope.InsertsAbove.

Link copied to clipboard

the frame's own append offset — pass it to ReplayScope.FromOffset to replay this frame and everything after it.

Link copied to clipboard

how many ops the frame carries. Fewer than were passed to Bolt.append when compaction records were discarded.