Skip to main content

decode_message

Function decode_message 

Source
pub fn decode_message(buf: &[u8]) -> Result<(MessageHeader, Message)>
Expand description

Decodes one complete GIOP message: the header followed by exactly message_size bytes.

A message with the more-fragments flag set is decoded only as far as its own bytes allow; pass fragments through a FragmentAssembler first to get the whole message.