//! Server-Sent Events framing shared by every provider SSE codec.
/// Returns the byte length of the first complete SSE event in `buf`, including
/// its terminating blank line, or `None` if no complete event has arrived yet.
///
/// Recognises `\n\n`, `\r\n\r\n`, `\r\r`, and mixed pairings such as `\n\r\n`,
/// so codecs stay agnostic to the upstream's choice of line ending.