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 datasrc- An optional mutable reference to a Read+Seek object that contains the source (dictionary) datasink- 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