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.
pub fn encode_binary_frame(
kind: BinaryFrameKind,
id: u64,
header: &[u8],
payload: &[u8],
) -> Result<Vec<u8>, ComponentError>Encode one frame into a single buffer, so it can be written with one call.