[][src]Trait brotli::enc::backward_references::AnyHasher

pub trait AnyHasher {
    fn Opts(&self) -> H9Opts;
fn GetHasherCommon(&mut self) -> &mut Struct1;
fn HashBytes(&self, data: &[u8]) -> usize;
fn HashTypeLength(&self) -> usize;
fn StoreLookahead(&self) -> usize;
fn PrepareDistanceCache(&self, distance_cache: &mut [i32]);
fn FindLongestMatch(
        &mut self,
        dictionary: Option<&BrotliDictionary>,
        dictionary_hash: &[u16],
        data: &[u8],
        ring_buffer_mask: usize,
        distance_cache: &[i32],
        cur_ix: usize,
        max_length: usize,
        max_backward: usize,
        gap: usize,
        max_distance: usize,
        out: &mut HasherSearchResult
    ) -> bool;
fn Store(&mut self, data: &[u8], mask: usize, ix: usize);
fn StoreRange(
        &mut self,
        data: &[u8],
        mask: usize,
        ix_start: usize,
        ix_end: usize
    );
fn BulkStoreRange(
        &mut self,
        data: &[u8],
        mask: usize,
        ix_start: usize,
        ix_end: usize
    );
fn Prepare(
        &mut self,
        one_shot: bool,
        input_size: usize,
        data: &[u8]
    ) -> HowPrepared;
fn StitchToPreviousBlock(
        &mut self,
        num_bytes: usize,
        position: usize,
        ringbuffer: &[u8],
        ringbuffer_mask: usize
    ); fn Store4Vec4(&mut self, data: &[u8], mask: usize, ix: usize) { ... }
fn StoreEvenVec4(&mut self, data: &[u8], mask: usize, ix: usize) { ... } }

Required methods

fn Opts(&self) -> H9Opts

fn GetHasherCommon(&mut self) -> &mut Struct1

fn HashBytes(&self, data: &[u8]) -> usize

fn HashTypeLength(&self) -> usize

fn StoreLookahead(&self) -> usize

fn PrepareDistanceCache(&self, distance_cache: &mut [i32])

fn FindLongestMatch(
    &mut self,
    dictionary: Option<&BrotliDictionary>,
    dictionary_hash: &[u16],
    data: &[u8],
    ring_buffer_mask: usize,
    distance_cache: &[i32],
    cur_ix: usize,
    max_length: usize,
    max_backward: usize,
    gap: usize,
    max_distance: usize,
    out: &mut HasherSearchResult
) -> bool

fn Store(&mut self, data: &[u8], mask: usize, ix: usize)

fn StoreRange(
    &mut self,
    data: &[u8],
    mask: usize,
    ix_start: usize,
    ix_end: usize
)

fn BulkStoreRange(
    &mut self,
    data: &[u8],
    mask: usize,
    ix_start: usize,
    ix_end: usize
)

fn Prepare(
    &mut self,
    one_shot: bool,
    input_size: usize,
    data: &[u8]
) -> HowPrepared

fn StitchToPreviousBlock(
    &mut self,
    num_bytes: usize,
    position: usize,
    ringbuffer: &[u8],
    ringbuffer_mask: usize
)

Loading content...

Provided methods

fn Store4Vec4(&mut self, data: &[u8], mask: usize, ix: usize)

fn StoreEvenVec4(&mut self, data: &[u8], mask: usize, ix: usize)

Loading content...

Implementors

impl<Alloc: Allocator<u16> + Allocator<u32>> AnyHasher for UnionHasher<Alloc>[src]

impl<AllocU32: Allocator<u32>, Buckets: Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>, Params: H10Params> AnyHasher for H10<AllocU32, Buckets, Params> where
    Buckets: PartialEq<Buckets>, 
[src]

impl<Specialization: AdvHashSpecialization + Clone, Alloc: Allocator<u16> + Allocator<u32>> AnyHasher for AdvHasher<Specialization, Alloc>[src]

impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher for BasicHasher<T>[src]

Loading content...