Trait rdedup_cdc::CDC [] [src]

pub trait CDC {
    fn find_chunk<'a>(&mut self, buf: &'a [u8]) -> Option<(&'a [u8], &'a [u8])>;
}

Required Methods

Find the end of the chunk.

When edge is find, state of CDC should automatically be reset.

Returns:

  • None - no chunk split was found, and the whole buf belongs to the current chunk.
  • Some - chunk edge was found, and it is splitting the buf in two pieces. The second one has not yet been searched for more chunks.

Implementors