pub fn messages(buf: &[u8]) -> MessageIter<'_> ⓘExpand description
Create a zero-copy iterator over messages in a byte buffer.
Calls framing::scan once to locate all message boundaries, then yields
&[u8] slices pointing into the original buffer on each next() call.
Garbage between valid messages is silently skipped.