Trait brotli::enc::backward_references::AnyHasher [−][src]
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: &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 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
); }
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: &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
&mut self,
dictionary: &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
)
&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
&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
)
&mut self,
num_bytes: usize,
position: usize,
ringbuffer: &[u8],
ringbuffer_mask: usize
)
Implementors
impl<AllocU32: Allocator<u32>, Buckets: Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>, Params: H10Params> AnyHasher for H10<AllocU32, Buckets, Params>
impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher for BasicHasher<T>
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for H9<AllocU16, AllocU32>
impl<Specialization: AdvHashSpecialization, AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for AdvHasher<Specialization, AllocU16, AllocU32>
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for UnionHasher<AllocU16, AllocU32>