Function next_msg_frame
Source pub fn next_msg_frame(data: &[u8]) -> (usize, Option<MessageFrame<'_>>)
Expand description
next_msg_frame takes a slice of bytes and returns a tuple containing the number of bytes consumed, and a MessageFrame if one was found.
§Parameters
data - A &[u8] to search for a MessageFrame
§Returns
A tuple containing the number of bytes consumed, and a MessageFrame if one was found.