pub fn complete_frames(bytes: &[u8]) -> (usize, u64)Expand description
The prefix of bytes made of whole, checksum-valid frames: its length and
how many frames it holds.
Stops at the first frame that is incomplete or whose checksum does not match — the same rule the engine’s own decoder applies.