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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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