apply_patch

Function apply_patch 

Source
pub fn apply_patch<R: Read + Seek + Debug, W: Write>(
    patch: &mut R,
    src: Option<&mut R>,
    sink: &mut W,
) -> Result<()>
Expand description

Applies a VCDiff patch to a source buffer

§Arguments

  • patch - A Read+Seek object that contains the VCDiff patch data
  • src - An optional mutable reference to a Read+Seek object that contains the source (dictionary) data
  • sink - A Write object that will receive the patched data

§Errors

Returns an error if there is an issue reading from the patch or source data, or writing to the sink