pub fn encode_size<'a>(message: &[u8], buf: &'a mut [u8; 10]) -> &'a [u8] ⓘ
Encode a message, returning the bytes that must be sent before the message. A buffer is used to avoid heap allocation.