using librsync 1.0.0 (perhaps to add to the README file of librsync)

45 views
Skip to first unread message

stepha...@gmail.com

unread,
Mar 20, 2015, 4:54:56 AM3/20/15
to libr...@googlegroups.com
Hi martin,

I had a problem for a day because I forgot to use a function and I have found the solution by looking at the source of rdiff.c.

so perhaps you should add to the README file how to use librsync :

1)call rs_sig_file to generate the signature of the original file (basis file)
2) use rs_loadsig_file to load the signature in memory
3)use rs_build_hash_table on the signature
4)use rs_delta_file to generate the delta file of a new modified file
5)use rs_patch_file to generate the new file from the basis file and the delta file

bests regards

stéphane
Reply all
Reply to author
Forward
0 new messages