Struct den::Signature

source ·
pub struct Signature { /* private fields */ }
Expand description

A identifier of a file, much smaller than the file itself.

See crate-level documentation for more details.

Implementations§

source§

impl Signature

source

pub fn parallel_diff(&self, data: &[u8], wp: &WorkerPool) -> Difference

Calculate the Self::diff in parallel using multiple OS threads.

source

pub fn parallel_diff_with_options( &self, data: &[u8], wp: &WorkerPool, data_size_threshold: usize, parallel_block_size: usize ) -> Difference

Calculate the Self::diff in parallel using multiple OS threads.

data_size_threshold is the threshold for how long data has to be before using the parallel implementation. If data is shorter than data_size_threshold, Self::diff