[−][src]Struct hash_roll::fastcdc::FastCdc
An instance of the "FastCDC" algorithm
Default parameters:
- Minimum chunk size: 2 KiB
- Maximum chunk size: 64 KiB
- Normal size: 8 KiB
- internal 64-bit gear table:
super::gear_table::GEAR_64
Implementations
impl<'a> FastCdc<'a>
[src]
pub fn new(
gear: &'a [u64; 256],
min_size: u64,
normal_size: u64,
max_size: u64
) -> Self
[src]
gear: &'a [u64; 256],
min_size: u64,
normal_size: u64,
max_size: u64
) -> Self
Create a custom FastCDC instance
Trait Implementations
impl<'a> Chunk for FastCdc<'a>
[src]
type SearchState = FastCdcState
SearchState
allows searching for the chunk edge to resume without duplicating work already done. Read more
fn to_search_state(&self) -> Self::SearchState
[src]
fn find_chunk_edge(
&self,
state: &mut Self::SearchState,
data: &[u8]
) -> (Option<usize>, usize)
[src]
&self,
state: &mut Self::SearchState,
data: &[u8]
) -> (Option<usize>, usize)
impl<'a> Clone for FastCdc<'a>
[src]
impl<'a> Copy for FastCdc<'a>
[src]
impl<'a> Debug for FastCdc<'a>
[src]
impl<'a> Default for FastCdc<'a>
[src]
impl<'a> Eq for FastCdc<'a>
[src]
impl<'a, '_> From<&'_ FastCdc<'a>> for FastCdcIncr<'a>
[src]
impl<'a> PartialEq<FastCdc<'a>> for FastCdc<'a>
[src]
impl<'a> ToChunkIncr for FastCdc<'a>
[src]
type Incr = FastCdcIncr<'a>
Incr
provides the incrimental interface to this chunking instance
fn to_chunk_incr(&self) -> Self::Incr
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for FastCdc<'a>
impl<'a> Send for FastCdc<'a>
impl<'a> Sync for FastCdc<'a>
impl<'a> Unpin for FastCdc<'a>
impl<'a> UnwindSafe for FastCdc<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,