MCPcopy Create free account
hub / github.com/TeamWin/Team-Win-Recovery-Project / ApplyPatchFn

Function ApplyPatchFn

updater/install.cpp:224–274  ·  view source on GitHub ↗

apply_patch(src_file, tgt_file, tgt_sha1, tgt_size, patch1_sha1, patch1_blob, [...]) Applies a binary patch to the src_file to produce the tgt_file. If the desired target is the same as the source, pass "-" for tgt_file. tgt_sha1 and tgt_size are the expected final SHA1 hash and size of the target file. The remaining arguments must come in pairs: a SHA1 hash (a 40-character hex string) and a blob.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

ErrorAbortFunction · 0.85
ReadArgsFunction · 0.85
ReadValueArgsFunction · 0.85
applypatchFunction · 0.85
StringValueFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected