Struct brotli::enc::backward_references::AdvHasher [−][src]
pub struct AdvHasher<Specialization: AdvHashSpecialization + Sized, AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> { pub GetHasherCommon: Struct1, pub bucket_size_: u64, pub block_size_: u64, pub specialization: Specialization, pub hash_shift_: i32, pub block_mask_: u32, pub num: AllocU16::AllocatedMemory, pub buckets: AllocU32::AllocatedMemory, pub h9_opts: H9Opts, }
Fields
GetHasherCommon: Struct1
bucket_size_: u64
block_size_: u64
specialization: Specialization
hash_shift_: i32
block_mask_: u32
num: AllocU16::AllocatedMemory
buckets: AllocU32::AllocatedMemory
h9_opts: H9Opts
Trait Implementations
impl<Specialization: AdvHashSpecialization, AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for AdvHasher<Specialization, AllocU16, AllocU32>
[src]
impl<Specialization: AdvHashSpecialization, AllocU16: Allocator<u16>, AllocU32: Allocator<u32>> AnyHasher for AdvHasher<Specialization, AllocU16, AllocU32>
fn Opts(&self) -> H9Opts
[src]
fn Opts(&self) -> H9Opts
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 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 GetHasherCommon(&mut self) -> &mut Struct1
[src]
fn GetHasherCommon(&mut self) -> &mut Struct1
fn HashTypeLength(&self) -> usize
[src]
fn HashTypeLength(&self) -> usize
fn StoreLookahead(&self) -> usize
[src]
fn StoreLookahead(&self) -> usize
fn HashBytes(&self, data: &[u8]) -> usize
[src]
fn HashBytes(&self, data: &[u8]) -> usize
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
)
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
Auto Trait Implementations
impl<Specialization, AllocU16, AllocU32> Send for AdvHasher<Specialization, AllocU16, AllocU32> where
Specialization: Send,
<AllocU16 as Allocator<u16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
impl<Specialization, AllocU16, AllocU32> Send for AdvHasher<Specialization, AllocU16, AllocU32> where
Specialization: Send,
<AllocU16 as Allocator<u16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
impl<Specialization, AllocU16, AllocU32> Sync for AdvHasher<Specialization, AllocU16, AllocU32> where
Specialization: Sync,
<AllocU16 as Allocator<u16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
impl<Specialization, AllocU16, AllocU32> Sync for AdvHasher<Specialization, AllocU16, AllocU32> where
Specialization: Sync,
<AllocU16 as Allocator<u16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,