Skip to main content

parse

Function parse 

Source
pub fn parse(
    cursor: &mut Cursor<'_>,
    message_type: u16,
    offset_size: u8,
    _length_size: u8,
    msg_size: usize,
) -> Result<SharedMessage>
Expand description

Parse a shared message wrapper.

message_type is the type ID from the containing object-header message envelope. The shared-message payload itself only stores where the actual message lives, so callers must preserve this type to decode SOHM payloads.