Skip to main content

frame_for_stream

Function frame_for_stream 

Source
pub fn frame_for_stream(body: &[u8], out: &mut Vec<u8>)
Expand description

Frame body for the stream: a LEB128 length prefix, then the bytes. Append-only into out, so a producer can concatenate many frames into one stream buffer.