pub fn load_bytes(bytes: &[u8]) -> Option<&[u8]>
Expand description
Parse the next data chunk out of a byte slice
This reads a 4-byte, little-endian length header and then returns a new slice with the data bounded by that header.
Returns None
if there is insufficient data for
the complete chunk.