/** * Apply the changes defined by delta to the data in base, yielding a new * array of bytes. * * @param base * some byte representing an object of some kind. * @param delta * a git pack delta defining the transform from one version to * another. * @return patched base */ public static final byte[] apply(byte[] base, byte[] delta) { return apply(base, delta, null); }
/** * Apply the changes defined by delta to the data in base, yielding a new * array of bytes. * * @param base * some byte representing an object of some kind. * @param delta * a git pack delta defining the transform from one version to * another. * @return patched base */ public static final byte[] apply(byte[] base, byte[] delta) { return apply(base, delta, null); }
/** * Apply the changes defined by delta to the data in base, yielding a new * array of bytes. * * @param base * some byte representing an object of some kind. * @param delta * a git pack delta defining the transform from one version to * another. * @return patched base */ public static final byte[] apply(final byte[] base, final byte[] delta) { return apply(base, delta, null); }
checkIfTooLarge(type, BinaryDelta.getResultSize(delta)); visit.data = BinaryDelta.apply(visit.parent.data, delta); delta = null;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;
checkIfTooLarge(type, BinaryDelta.getResultSize(delta)); visit.data = BinaryDelta.apply(visit.parent.data, delta); delta = null;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;
checkIfTooLarge(type, BinaryDelta.getResultSize(delta)); visit.data = BinaryDelta.apply(visit.parent.data, delta); delta = null;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;
BinaryDelta.apply(data, cmds, result); data = result; delta = delta.next;