Skip to main content

begin

Function begin 

Source
pub fn begin(buf: &mut BytesMut, tag: u8) -> usize
Expand description

Starts a tagged message, writing the tag and a placeholder length.

Returns the offset of the length field, to be passed to finish.