Trait binary_io::data::DataOutput[][src]

pub trait DataOutput: Write {
    fn byte_order(&self) -> ByteOrder;
fn set_byte_order(&mut self, order: ByteOrder); fn write_bytes(&mut self, bytes: &[u8]) -> Result<()> { ... }
fn write_byte(&mut self, byte: u8) -> Result<()> { ... } }

A Trait for types that can perform binary IO Writes

Required methods

fn byte_order(&self) -> ByteOrder[src]

Returns the byte order mode for the stream

fn set_byte_order(&mut self, order: ByteOrder)[src]

Sets the byte order mode on the stream

Loading content...

Provided methods

fn write_bytes(&mut self, bytes: &[u8]) -> Result<()>[src]

Writes all of bytes to the underlying stream or returns an error

fn write_byte(&mut self, byte: u8) -> Result<()>[src]

Writes byte to the underlying stream or returns an error

Loading content...

Implementors

Loading content...