pub(crate) trait BinaryReader {
Show 13 methods
// Required methods
fn get_u32(buf: [u8; 4]) -> u32;
fn read_u16(reader: &mut impl Read) -> Result<u16>;
fn read_u32(reader: &mut impl Read) -> Result<u32>;
fn read_uratio(reader: &mut impl Read) -> Result<(u32, u32)>;
fn read_i16(reader: &mut impl Read) -> Result<i16>;
fn read_i32(reader: &mut impl Read) -> Result<i32>;
fn read_iratio(reader: &mut impl Read) -> Result<(i32, i32)>;
fn read_f32(reader: &mut impl Read) -> Result<f32>;
fn read_f64(reader: &mut impl Read) -> Result<f64>;
// Provided methods
fn read_u8(reader: &mut impl Read) -> Result<u8> { ... }
fn read_uchar(reader: &mut impl Read) -> Result<u8> { ... }
fn read_i8(reader: &mut impl Read) -> Result<i8> { ... }
fn read_ichar(reader: &mut impl Read) -> Result<i8> { ... }
}
Required Methods§
fn get_u32(buf: [u8; 4]) -> u32
fn read_u16(reader: &mut impl Read) -> Result<u16>
fn read_u32(reader: &mut impl Read) -> Result<u32>
fn read_uratio(reader: &mut impl Read) -> Result<(u32, u32)>
fn read_i16(reader: &mut impl Read) -> Result<i16>
fn read_i32(reader: &mut impl Read) -> Result<i32>
fn read_iratio(reader: &mut impl Read) -> Result<(i32, i32)>
fn read_f32(reader: &mut impl Read) -> Result<f32>
fn read_f64(reader: &mut impl Read) -> Result<f64>
Provided Methods§
fn read_u8(reader: &mut impl Read) -> Result<u8>
fn read_uchar(reader: &mut impl Read) -> Result<u8>
fn read_i8(reader: &mut impl Read) -> Result<i8>
fn read_ichar(reader: &mut impl Read) -> Result<i8>
Object Safety§
This trait is not object safe.