Struct bitstream_io::BitQueueBE [] [src]

pub struct BitQueueBE<N: Numeric> { /* fields omitted */ }

A wrapper around some unsigned type to turn it into a big-endian queue.

Methods

impl<N: Numeric> BitQueueBE<N>
[src]

Wraps an existing value in a big-endian bit queue with the given number of bits. It is up to the programmer to ensure that the value is not larger than the given number of bits can contain.

Creates an empty queue with a value and bit count of 0.

Trait Implementations

impl<N: Numeric> BitQueue<N> for BitQueueBE<N>
[src]

Discards queue's current status and sets it to new bits and value

Consumes queue and returns its internal value

Current length of queue, in bits

Pushes a new value onto the back of the queue using the given number of bits. May panic if the total number of bits exceeds the size of the type being pushed onto. Read more

Pops a value from the front of the queue with the given number of bits. Returns queue's whole contents if the requested number of bits exceeds the size of the queue. Read more

Drops the given number of bits from the queue without returning them

Whether or not the queue is empty

Discards queue's current status and sets bits and value to 0