Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.06 KB

File metadata and controls

48 lines (37 loc) · 1.06 KB

lz4bsdiff/lz4bspatch

lz4bsdiff/lz4bspatch are libraries for building and applying patches to binary files on tight RAM space environment.

lz4bspatch() function require only about LZ4 compless block size RAM.

License

This project includes LZ4, bspatch/bsdiff project.

This project is governed by the BSD 2-clause license. For details see the file titled LICENSE in the project root folder.

Configuration macro

LZ4BSPATCH_BLOCK_BYTES
LZ4 compress blocksize. Default is 512 bytes. lz4bspatch require this buffer on the stack. There is a trade-off between compression ratio and memory usage.

Build

cmake .
make
make test
liblz4bsdiff.a
patch generating library.
lz4bsdiff
generate a patch between two binary files.
liblz4bspatch.a
patch applying library.
lz4bspatch
apply a patch built with lz4bsdiff.
unitTest
simple unitTest for liblz4bsdiff.a and liblz4bspatch.a