envelopes

Function envelopes 

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

Iterates over envelopes concatenated in buf (e.g. a batch from Builder::seal_envelope … take_frames, or an append-only file).

Each item is decode of the remaining bytes. After the first Err (corruption or a truncated tail) the iterator yields None. An empty buffer yields nothing.