pub fn read_patch(
reader: &mut impl BufRead,
) -> Result<Patch<impl BufRead>, String>Expand description
https://docs.itch.zone/wharf/master/file-formats/patches.html
The patch structure is:
- [
PATCH_MAGIC] pwr::PatchHeader- decompressed stream follows:
tlc::Container(target container)tlc::Container(source container)- repeated sequence:
pwr::SyncHeader- Optional
pwr::BsdiffHeaderif the previous header type ispwr::sync_header::Type::Bsdiff- repeated sequence:
pwr::SyncOp
pwr::SyncOp(Type = HEY_YOU_DID_IT) // end of file’s series