Struct lzw::MsbWriter [] [src]

pub struct MsbWriter<W: Write> {
    // some fields omitted
}

Writes bits to a byte stream, MSB first.

Methods

impl<W: Write> MsbWriter<W>

fn new(writer: W) -> MsbWriter<W>

Creates a new bit reader

Trait Implementations

impl<W: Write> Write for MsbWriter<W>

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

1.0.0fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

1.0.0fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

1.0.0fn by_ref(&mut self) -> &mut Self

impl<W: Write> BitWriter for MsbWriter<W>

fn write_bits(&mut self, v: u16, n: u8) -> Result<()>