Skip to main content

encode_binary_frame

Function encode_binary_frame 

Source
pub fn encode_binary_frame(
    kind: BinaryFrameKind,
    id: u64,
    header: &[u8],
    payload: &[u8],
) -> Result<Vec<u8>, ComponentError>
Expand description

Encode one frame into a single buffer, so it can be written with one call.