Function bebop::read_len

source ·
pub fn read_len(raw: &[u8]) -> DeResult<usize>
Expand description

Read a 4-byte length value from the front of the raw data.

This should only be called from within an auto-implemented deserialize function or for byte hacking.