frames

Function frames 

Source
pub fn frames(buf: &[u8]) -> Frames<'_> ⓘ
Expand description

Split a batch produced by Builder::take_frames into messages. Each frame is [u32 len][message]; truncated input yields one Err(OutOfBounds) and stops. Never panics.