pub trait ReadExt: Read + Sized {
fn read_be<T: ReadBytes>(&mut self) -> Result<T> { ... }
fn read_le<T: ReadBytes>(&mut self) -> Result<T> { ... }
fn read_be_and_calc_bytes<T: ReadBytes>(
&mut self,
crc: &mut CRC<u32>
) -> Result<T> { ... }
fn read_le_and_calc_bytes<T: ReadBytes>(
&mut self,
crc: &mut CRC<u32>
) -> Result<T> { ... }
fn read_vec_for(&mut self, n: usize) -> Result<Vec<u8>> { ... }
fn read_vec_for_and_calc_bytes(
&mut self,
n: usize,
crc: &mut CRC<u32>
) -> Result<Vec<u8>> { ... }
fn read_string_for(&mut self, n: usize) -> Result<String> { ... }
fn read_string_for_and_calc_bytes(
&mut self,
n: usize,
crc: &mut CRC<u32>
) -> Result<String> { ... }
fn read_array<const LEN: usize>(&mut self) -> Result<[u8; LEN]> { ... }
fn read_array_and_calc_bytes<const LEN: usize>(
&mut self,
crc: &mut CRC<u32>
) -> Result<[u8; LEN]> { ... }
fn read_string<const LEN: usize>(&mut self) -> Result<String> { ... }
fn read_stringy_and_calc_bytes<const LEN: usize>(
&mut self,
crc: &mut CRC<u32>
) -> Result<String> { ... }
}