Skip to main content

frame

Function frame 

Source
pub fn frame(code: u8, payload: &[u8]) -> Vec<u8> ⓘ
Expand description

One multiplexed frame: a little-endian (tag << 24 | len) header, then the payload.