Struct redux::bitio::BitWriter
[−]
[src]
pub struct BitWriter<'a> { /* fields omitted */ }
Actual implementation of bit-oriented outour writer.
Methods
impl<'a> BitWriter<'a>
[src]
fn new(writer: &'a mut Write) -> BitWriter<'a>
Creates a new instance by wrapping a byte output stream.
Trait Implementations
impl<'a> ByteCount for BitWriter<'a>
[src]
impl<'a> BitWrite for BitWriter<'a>
[src]
fn write_bits(&mut self, symbol: usize, bits: usize) -> Result<()>
Writes a single symbol to the output.
fn flush_bits(&mut self) -> Result<()>
Flushes all remaining bits to the output after the last whole octet, padded with zero bits.