pub const fn check_sse_tail_bound(
retained_bytes: usize,
) -> Result<(), SseTailOverflow>Expand description
Fail-closed bound for the unprocessed SSE tail.
Call once per chunk, after draining the consumed prefix, so the measured length is what the loop actually retains. Takes a length rather than the buffer so byte and string wire buffers share it.
ยงErrors
Returns SseTailOverflow when retained_bytes tops
MAX_SSE_TAIL_BYTES; the caller must abort the stream.