Bounded sparse storage for one QUIC CRYPTO stream.
Offsets are absolute and the store never allocates a buffer proportional to a future offset. Overlapping bytes must agree; once bytes are delivered they are removed and cannot be delivered twice.
Summary
Functions
Insert a sparse range and return newly contiguous bytes, if any.
Types
Functions
@spec buffered_bytes(t()) :: non_neg_integer()
@spec intervals(t()) :: [{non_neg_integer(), binary()}]
@spec new(keyword()) :: initial_state()
@spec next_offset(t()) :: non_neg_integer()
Insert a sparse range and return newly contiguous bytes, if any.