[][src]Trait brotli::enc::ir_interpret::IRInterpreter

pub trait IRInterpreter {
    fn inc_local_byte_offset(&mut self, inc: usize);
fn local_byte_offset(&self) -> usize;
fn update_block_type(&mut self, new_type: u8, new_stride: u8);
fn block_type(&self) -> u8;
fn literal_data_at_offset(&self, index: usize) -> u8;
fn literal_context_map(&self) -> &[u8];
fn prediction_mode(&self) -> LiteralPredictionModeNibble;
fn update_cost(
        &mut self,
        stride_prior: [u8; 8],
        stride_byte_offset: usize,
        selected_bits: u8,
        cm_prior: usize,
        literal: u8
    ); }

Required methods

fn inc_local_byte_offset(&mut self, inc: usize)

fn local_byte_offset(&self) -> usize

fn update_block_type(&mut self, new_type: u8, new_stride: u8)

fn block_type(&self) -> u8

fn literal_data_at_offset(&self, index: usize) -> u8

Important traits for &'_ mut [u8]
fn literal_context_map(&self) -> &[u8]

fn prediction_mode(&self) -> LiteralPredictionModeNibble

fn update_cost(
    &mut self,
    stride_prior: [u8; 8],
    stride_byte_offset: usize,
    selected_bits: u8,
    cm_prior: usize,
    literal: u8
)

Loading content...

Implementors

impl<'a, Alloc: Allocator<u16> + Allocator<u32> + Allocator<floatX>> IRInterpreter for StrideEval<'a, Alloc>[src]

impl<'a, Alloc: Allocator<u16> + Allocator<u32> + Allocator<floatX>> IRInterpreter for ContextMapEntropy<'a, Alloc>[src]

impl<'a, Alloc: Allocator<s16> + Allocator<u32> + Allocator<v8>> IRInterpreter for PriorEval<'a, Alloc>[src]

Loading content...