Skip to main content

write_frame

Function write_frame 

Source
pub fn write_frame(dst: &mut impl BufMut, inner: &[u8])
Expand description

Write a frame (length-prefixed) into the destination buffer. inner is the already-encoded packet data (packet ID + payload).