Trait rdedup_cdc::RollingHash
[−]
[src]
pub trait RollingHash { type Digest; fn roll_byte(&mut self, buf: u8); fn digest(&self) -> Self::Digest; fn reset(&mut self); fn roll(&mut self, buf: &[u8]) { ... } }
Rolling sum engine trait
Associated Types
type Digest
Required Methods
fn roll_byte(&mut self, buf: u8)
fn digest(&self) -> Self::Digest
Return current rolling sum digest
fn reset(&mut self)
Resets the internal state