Struct bitstream::reader::BitReader [] [src]

pub struct BitReader<R: Read + ?Sized, E: Endianess> { /* fields omitted */ }

BitReader reads an input stream as a stream of bits (instead of the normal byte-level).

Methods

impl<R: Read, E: Endianess> BitReader<R, E>
[src]

impl<R: Read + ?Sized, E: Endianess> BitReader<R, E>
[src]

Reads bits bits into a usize. Panics if bits is greater than the number of bits in a usize

Reads bits bits into an isize. Panics if bits is greater than the number of bits in a isize

Reads bits bits into a u64. Panics if bits is greater than the number of bits in a u64

Reads bits bits into an i64. Panics if bits is greater than the number of bits in a i64

Read a single bit from the stream returning it as a boolean value

Read an unsigned, unary-coded value from the bitstream. This uses one-terminated encoding. For example: the number 6 is encoded as 0000001

Advances the reader such that the next bits will be from the start of a byte boundary. If the reader is already on a byte boundary, nothing is changed.

Trait Implementations

impl<R: Read + ?Sized, E: Endianess> Drop for BitReader<R, E>
[src]

A method called when the value goes out of scope. Read more