message_io::encoding
pub fn encode_size(message: &[u8]) -> [u8; 4]
Encode a message, returning the bytes that must be sent before the message.