Enum brotli::enc::backward_references::UnionHasher [−][src]
pub enum UnionHasher<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> { Uninit, H2(BasicHasher<H2Sub<AllocU32>>), H3(BasicHasher<H3Sub<AllocU32>>), H4(BasicHasher<H4Sub<AllocU32>>), H54(BasicHasher<H54Sub<AllocU32>>), H5(AdvHasher<H5Sub, AllocU16, AllocU32>), H6(AdvHasher<H6Sub, AllocU16, AllocU32>), H9(H9<AllocU16, AllocU32>), H10(H10<AllocU32, H10Buckets<AllocU32>, H10DefaultParams>), }
Variants
Uninit
H2(BasicHasher<H2Sub<AllocU32>>)
H3(BasicHasher<H3Sub<AllocU32>>)
H4(BasicHasher<H4Sub<AllocU32>>)
H54(BasicHasher<H54Sub<AllocU32>>)
H5(AdvHasher<H5Sub, AllocU16, AllocU32>)
H6(AdvHasher<H6Sub, AllocU16, AllocU32>)
H9(H9<AllocU16, AllocU32>)
H10(H10<AllocU32, H10Buckets<AllocU32>, H10DefaultParams>)
Methods
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> UnionHasher<AllocU16, AllocU32>
[src]
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> UnionHasher<AllocU16, AllocU32>
Trait Implementations
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for UnionHasher<AllocU16, AllocU32>
[src]
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for UnionHasher<AllocU16, AllocU32>
fn Opts(&self) -> H9Opts
[src]
fn Opts(&self) -> H9Opts
fn GetHasherCommon(&mut self) -> &mut Struct1
[src]
fn GetHasherCommon(&mut self) -> &mut Struct1
fn Prepare(
&mut self,
one_shot: bool,
input_size: usize,
data: &[u8]
) -> HowPrepared
[src]
fn Prepare(
&mut self,
one_shot: bool,
input_size: usize,
data: &[u8]
) -> HowPrepared
fn HashBytes(&self, data: &[u8]) -> usize
[src]
fn HashBytes(&self, data: &[u8]) -> usize
fn HashTypeLength(&self) -> usize
[src]
fn HashTypeLength(&self) -> usize
fn StoreLookahead(&self) -> usize
[src]
fn StoreLookahead(&self) -> usize
fn PrepareDistanceCache(&self, distance_cache: &mut [i32])
[src]
fn PrepareDistanceCache(&self, distance_cache: &mut [i32])
fn StitchToPreviousBlock(
&mut self,
num_bytes: usize,
position: usize,
ringbuffer: &[u8],
ringbuffer_mask: usize
)
[src]
fn StitchToPreviousBlock(
&mut self,
num_bytes: usize,
position: usize,
ringbuffer: &[u8],
ringbuffer_mask: usize
)
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
[src]
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)
[src]
fn Store(&mut self, data: &[u8], mask: usize, ix: usize)
fn StoreRange(
&mut self,
data: &[u8],
mask: usize,
ix_start: usize,
ix_end: usize
)
[src]
fn StoreRange(
&mut self,
data: &[u8],
mask: usize,
ix_start: usize,
ix_end: usize
)
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> Default for UnionHasher<AllocU16, AllocU32>
[src]
impl<AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> Default for UnionHasher<AllocU16, AllocU32>
Auto Trait Implementations
impl<AllocU16, AllocU32> Send for UnionHasher<AllocU16, AllocU32> where
<AllocU16 as Allocator<u16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
impl<AllocU16, AllocU32> Send for UnionHasher<AllocU16, AllocU32> where
<AllocU16 as Allocator<u16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
impl<AllocU16, AllocU32> Sync for UnionHasher<AllocU16, AllocU32> where
<AllocU16 as Allocator<u16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
impl<AllocU16, AllocU32> Sync for UnionHasher<AllocU16, AllocU32> where
<AllocU16 as Allocator<u16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,