[][src]Trait podio::ReadPodExt

pub trait ReadPodExt {
    fn read_u64<T: Endianness>(&mut self) -> Result<u64>;
fn read_u32<T: Endianness>(&mut self) -> Result<u32>;
fn read_u16<T: Endianness>(&mut self) -> Result<u16>;
fn read_u8(&mut self) -> Result<u8>;
fn read_i64<T: Endianness>(&mut self) -> Result<i64>;
fn read_i32<T: Endianness>(&mut self) -> Result<i32>;
fn read_i16<T: Endianness>(&mut self) -> Result<i16>;
fn read_i8(&mut self) -> Result<i8>;
fn read_f32<T: Endianness>(&mut self) -> Result<f32>;
fn read_f64<T: Endianness>(&mut self) -> Result<f64>;
fn read_exact(&mut self, _: usize) -> Result<Vec<u8>>; }

Additional read methods for a io::Read

Required methods

fn read_u64<T: Endianness>(&mut self) -> Result<u64>

Read a u64

fn read_u32<T: Endianness>(&mut self) -> Result<u32>

Read a u32

fn read_u16<T: Endianness>(&mut self) -> Result<u16>

Read a u16

fn read_u8(&mut self) -> Result<u8>

Read a u8

fn read_i64<T: Endianness>(&mut self) -> Result<i64>

Read a i64

fn read_i32<T: Endianness>(&mut self) -> Result<i32>

Read a i32

fn read_i16<T: Endianness>(&mut self) -> Result<i16>

Read a i16

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

Read a i8

fn read_f32<T: Endianness>(&mut self) -> Result<f32>

Read a f32

fn read_f64<T: Endianness>(&mut self) -> Result<f64>

Read a f64

fn read_exact(&mut self, _: usize) -> Result<Vec<u8>>

Read a specific number of bytes

Loading content...

Implementors

impl<R: Read> ReadPodExt for R[src]

Loading content...