pub struct ZstdIncr { /* private fields */ }
Expand description
Incrimental chunking using Zstd’s rsyncable algorithm
Performance note: Zstd’s chunking requires buffer look back to remove previously inserted data,
and as a result requires ZstdIncr
to maintain an internal buffer. This internal buffer may
reduce performance.
Trait Implementations§
Source§impl ChunkIncr for ZstdIncr
impl ChunkIncr for ZstdIncr
Source§fn push(&mut self, data: &[u8]) -> Option<usize>
fn push(&mut self, data: &[u8]) -> Option<usize>
The data “contained” within a implimentor of this trait is the history of all data slices
passed to feed. Read more
Source§fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
Source§fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
Given a
ChunkIncr
and a single slice, return a list of slices chunked by the chunker.
Does not return the remainder (if any) in the iteration. Use [IterSlices::take_rem()
] or
IterSlices::into_parts()
to get the remainder. Read moreimpl Eq for ZstdIncr
impl StructuralPartialEq for ZstdIncr
Auto Trait Implementations§
impl Freeze for ZstdIncr
impl RefUnwindSafe for ZstdIncr
impl Send for ZstdIncr
impl Sync for ZstdIncr
impl Unpin for ZstdIncr
impl UnwindSafe for ZstdIncr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more