Struct bitstream_io::write::BitWriterBE [] [src]

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

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

Methods

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

Wraps a big-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 BitWriterBE<'a>
[src]

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 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 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

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

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 is aligned at a whole byte. Does nothing if the stream is already aligned. Read more