Trait dwarf::Endian
[−]
[src]
pub trait Endian: Copy { fn read_u16<R: Read>(&self, r: &mut R) -> Result<u16, Error>; fn read_u32<R: Read>(&self, r: &mut R) -> Result<u32, Error>; fn read_u64<R: Read>(&self, r: &mut R) -> Result<u64, Error>; fn write_u16<W: Write>(&self, w: &mut W, val: u16) -> Result<(), Error>; fn write_u32<W: Write>(&self, w: &mut W, val: u32) -> Result<(), Error>; fn write_u64<W: Write>(&self, w: &mut W, val: u64) -> Result<(), Error>; }
Required Methods
fn read_u16<R: Read>(&self, r: &mut R) -> Result<u16, Error>
fn read_u32<R: Read>(&self, r: &mut R) -> Result<u32, Error>
fn read_u64<R: Read>(&self, r: &mut R) -> Result<u64, Error>
fn write_u16<W: Write>(&self, w: &mut W, val: u16) -> Result<(), Error>
fn write_u32<W: Write>(&self, w: &mut W, val: u32) -> Result<(), Error>
fn write_u64<W: Write>(&self, w: &mut W, val: u64) -> Result<(), Error>
Implementors
impl Endian for LittleEndian
impl Endian for BigEndian
impl Endian for AnyEndian