get_segments

Function get_segments 

Source
pub fn get_segments(
    data: Vec<u8>,
    msg_type: u16,
) -> (SegmentStart, Vec<SegmentChunk>)
Expand description

Split the given data into multiple segments, pre-pending the message type to enable decoding on the receiving side.