Function message_io::util::encoding::encode_size[][src]

pub fn encode_size<'a>(message: &[u8], buf: &'a mut [u8; 10]) -> &'a [u8]
Notable traits for &'_ mut [u8]
impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Expand description

Encode a message, returning the bytes that must be sent before the message. A buffer is used to avoid heap allocation.