pub fn generate(next_offset: &Offset) -> StringExpand description
Generate a monotonically increasing cursor from stream position.
The offset-derived value acts as a floor — when the stream advances the cursor jumps to at least the new position. Between advances the cursor still increments so consecutive responses at the same offset are distinguishable (required for jitter detection).
The value is a decimal integer that fits within JavaScript’s
Number.MAX_SAFE_INTEGER.