Skip to main content

apply

Function apply 

Source
pub fn apply(old: &[u8], delta: &Delta) -> Result<Vec<u8>>
Expand description

Reconstruct new by applying delta to old.

ยงErrors

Returns crate::Error::DeltaApply if a Op::Copy references a block that does not exist in old (e.g. a corrupt or mismatched delta).