xdiff_string_bpatch
PHP function
Edit on GitHub ✎
(PECL xdiff >= 1.5.0)
Patch a string with a binary diff
Description
xdiff_string_bpatch(string $str, string $patch): string
Patches a string str with a binary patch. This function accepts patches created both via xdiff_string_bdiff() and xdiff_string_rabdiff() functions or their file counterparts.
Parameters
strThe original binary string.
patchThe binary patch string.
Return Values
Returns the patched string, or false on error.