alinea
Version:
Headless git-based CMS
11 lines (10 loc) • 417 B
TypeScript
/**
* Creates Git-compatible delta data (the payload format used by OBJ_REF_DELTA
* and OBJ_OFS_DELTA entries in pack files).
*/
export declare function createGitDelta(base: Uint8Array, target: Uint8Array): Uint8Array;
/**
* Applies Git delta data onto a base object and returns the reconstructed
* target object bytes.
*/
export declare function applyGitDelta(base: Uint8Array, delta: Uint8Array): Uint8Array;