pub trait ReadByteExt: Read {
// Provided methods
fn read_u8(&mut self) -> Result<u8> { ... }
fn read_u8_escaped(&mut self) -> Result<u8> { ... }
}Expand description
Additional methods for std::io::Read trait to read a single (escaped) byte.
Provided Methods§
Sourcefn read_u8_escaped(&mut self) -> Result<u8>
fn read_u8_escaped(&mut self) -> Result<u8>
Check if the first byte is MARK_BYTE and if it is, it will read the next byte and add one to it.