[−][src]Trait lazy_bytes_cast::ReadBytes
Utility to read values from sequence of bytes
Required methods
fn read_value<T: FromBytes>(&mut self) -> Option<T>
Reads bytes from self, converting it to the value.
Modifies bytes sequence, offsetting cursor by the size of value.
When there is not enough bytes, returns None
fn read_value_unchecked<T: FromBytes>(&mut self) -> T
Unchecked version of read_value
, that doesn't perform length check.
Should panic if size is insufficient.