Struct bitstream_io::write::BitWriterLE [] [src]

pub struct BitWriterLE<'a> { /* fields omitted */ }

A wrapper for writing values to a little-endian stream.

Methods

impl<'a> BitWriterLE<'a>
[src]

Wraps a little-endian writer around a Write reference.

Because this is liable to make many small writes in the course of normal operation, a BufWrite is preferable for better performance.

Trait Implementations

impl<'a> BitWrite for BitWriterLE<'a>
[src]

Writes a single bit to the stream. true indicates 1, false indicates 0 Read more

Writes an unsigned value to the stream using the given number of bits. This method assumes that value's type is sufficiently large to hold those bits. Read more

Writes the entirety of a byte buffer to the stream. If the stream is already byte-aligned, it will often map to a faster write_all call. Otherwise it will write bytes individually in 8-bit increments. Read more

Writes a twos-complement signed value to the stream with the given number of bits. This method assumes that value's type is sufficiently large to hold those bits. Read more

Writes Huffman code for the given symbol to the stream. Read more

Returns true if the stream is aligned at a whole byte. Read more

Writes value number of 1 bits to the stream and then writes a 0 bit. This field is variably-sized. Read more

Writes value number of 0 bits to the stream and then writes a 1 bit. This field is variably-sized. Read more

Pads the stream with 0 bits until it is aligned at a whole byte. Does nothing if the stream is already aligned. Read more