Trait tiff::decoder::stream::EndianReader

source ·
pub trait EndianReader: Read {
    // Required method
    fn byte_order(&self) -> ByteOrder;

    // Provided methods
    fn read_u16(&mut self) -> Result<u16, Error> { ... }
    fn read_i8(&mut self) -> Result<i8, Error> { ... }
    fn read_i16(&mut self) -> Result<i16, Error> { ... }
    fn read_u32(&mut self) -> Result<u32, Error> { ... }
    fn read_i32(&mut self) -> Result<i32, Error> { ... }
    fn read_u64(&mut self) -> Result<u64, Error> { ... }
    fn read_i64(&mut self) -> Result<i64, Error> { ... }
    fn read_f32(&mut self) -> Result<f32, Error> { ... }
    fn read_f64(&mut self) -> Result<f64, Error> { ... }
}
Expand description

Reader that is aware of the byte order.

Required Methods§

source

fn byte_order(&self) -> ByteOrder

Byte order that should be adhered to

Provided Methods§

source

fn read_u16(&mut self) -> Result<u16, Error>

Reads an u16

source

fn read_i8(&mut self) -> Result<i8, Error>

Reads an i8

source

fn read_i16(&mut self) -> Result<i16, Error>

Reads an i16

source

fn read_u32(&mut self) -> Result<u32, Error>

Reads an u32

source

fn read_i32(&mut self) -> Result<i32, Error>

Reads an i32

source

fn read_u64(&mut self) -> Result<u64, Error>

Reads an u64

source

fn read_i64(&mut self) -> Result<i64, Error>

Reads an i64

source

fn read_f32(&mut self) -> Result<f32, Error>

Reads an f32

source

fn read_f64(&mut self) -> Result<f64, Error>

Reads an f64

Implementors§

source§

impl<R> EndianReader for SmartReader<R>
where R: Read,