1 #ifndef INCLUDE_delta_apply_h__
2 #define INCLUDE_delta_apply_h__
5 * Apply a git binary delta to recover the original content.
7 * @param out the output buffer to receive the original data.
8 * Only out->data and out->len are populated, as this is
9 * the only information available in the delta.
10 * @param base the base to copy from during copy instructions.
11 * @param base_len number of bytes available at base.
12 * @param delta the delta to execute copy/insert instructions from.
13 * @param delta_len total number of bytes in the delta.
15 * - GIT_SUCCESS on a successful delta unpack.
16 * - GIT_ERROR if the delta is corrupt or doesn't match the base.
18 extern int git__delta_apply(
20 const unsigned char *base
,
22 const unsigned char *delta
,