Crate xpatch

Crate xpatch 

Source
Expand description

§xpatch

A high-performance delta compression library with automatic algorithm selection.

§Quick Start

use xpatch::delta;

let base = b"Hello, world!";
let new = b"Hello, beautiful world!";
let delta = delta::encode(0, base, new, true);
let decoded = delta::decode(base, &delta).unwrap();
assert_eq!(decoded, new);

Re-exports§

pub use delta::Algorithm;
pub use delta::decode;
pub use delta::encode;
pub use delta::get_tag;

Modules§

delta
Delta encoding and decoding for efficient storage of sequential data changes.
token_list
tokenizer
Fast tokenizer using a Trie for longest-match encoding.
varint
Variable-length integer encoding (varint) for compact storage.