BitReadInternal

Trait BitReadInternal 

Source
pub trait BitReadInternal: BitReadEndian + BitReadFill {
    // Required methods
    fn left(&self) -> usize;
    fn refill32(&mut self);
    fn refill64(&mut self);

    // Provided method
    fn get_val(&mut self, n: usize) -> u64 { ... }
}
Expand description

Used to interact with an internal buffer.

Required Methods§

Source

fn left(&self) -> usize

Gets the number of bits left in an internal buffer.

Source

fn refill32(&mut self)

Extracts a 32-bit sequence from an internal buffer and saves it within an internal cache.

Source

fn refill64(&mut self)

Extracts a 64-bit sequence from an internal buffer and saves it within an internal cache.

Provided Methods§

Source

fn get_val(&mut self, n: usize) -> u64

Returns n bits from an internal buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§