pub fn from_buffer<'de, T>( decoder: &mut Decoder, buffer: &[u8], ) -> Result<(T, u64)>where T: Deserialize<'de>,
Decode single message from buffer. Returns the decoded message and number of bytes consumed.