Skip to main content

encode_binary

Function encode_binary 

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

Encodes one binary message: the id byte followed by the payload.