pub struct Decoder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Decoder<'a>
impl<'a> Decoder<'a>
pub fn new(buffer: &'a [u8]) -> Self
pub fn decode(&mut self, total: u32) -> u32
pub fn decode_bin(&mut self, total_bits: u8) -> u32
pub fn decode_bit_logp(&mut self, logp: u16) -> bool
pub fn decode_icdf_old(&mut self, table: &[u8], total_bits: u8) -> u16
pub fn decode_icdf(&mut self, table: &[u8], total_bits: u8) -> usize
pub fn decode_bits(&mut self, bits: usize) -> u32
pub fn decode_uniform(&mut self, total: u32) -> u32
pub fn update(&mut self, low: u16, high: u16, total: u16)
pub fn tell(&self) -> usize
pub fn tell_frac(&self) -> usize
pub fn tell_frac_fast(&self) -> usize
Auto Trait Implementations
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnwindSafe for Decoder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more