Section navigation

Public structRead-only CodecCheckpoint

Namespace
Rowles.LeanCorpus.Codecs.CodecKit.Codecs
Assembly
Rowles.LeanCorpus.dll

A saved reader position, bundled with the sequence it was captured from. Passing the sequence through ensures that nested rewinds — which may narrow reader.Sequence to a sub-slice — cannot invalidate an outer checkpoint.

public readonly struct CodecCheckpoint

Public constructor CodecCheckpoint(SequencePosition, ReadOnlySequence<byte>)