pub struct DeltaEncoder;Expand description
Delta encoder.
Implementations§
Source§impl DeltaEncoder
impl DeltaEncoder
Sourcepub fn encode_with_index(
index: &HashMap<[u8; 4], Vec<usize>>,
base: &[u8],
target: &[u8],
) -> Vec<u8> ⓘ
pub fn encode_with_index( index: &HashMap<[u8; 4], Vec<usize>>, base: &[u8], target: &[u8], ) -> Vec<u8> ⓘ
Encode a delta using a pre-built index (avoids rebuilding for sliding window).
Sourcepub fn estimate_delta_size(base: &[u8], target: &[u8]) -> usize
pub fn estimate_delta_size(base: &[u8], target: &[u8]) -> usize
Estimate the encoded delta size without allocating the output.
Trait Implementations§
Source§impl Debug for DeltaEncoder
impl Debug for DeltaEncoder
Auto Trait Implementations§
impl Freeze for DeltaEncoder
impl RefUnwindSafe for DeltaEncoder
impl Send for DeltaEncoder
impl Sync for DeltaEncoder
impl Unpin for DeltaEncoder
impl UnsafeUnpin for DeltaEncoder
impl UnwindSafe for DeltaEncoder
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