|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| gflags/ | | 03-May-2024 | - | 6,202 | 3,650 |
| gtest/ | | 03-May-2024 | - | 26,288 | 17,118 |
| m4/ | | 03-May-2024 | - | 8,005 | 7,176 |
| man/ | | 03-May-2024 | - | 79 | 64 |
| packages/ | | 03-May-2024 | - | 571 | 346 |
| src/ | | 03-May-2024 | - | 22,695 | 14,780 |
| testdata/ | | 03-May-2024 | - | 114 | 87 |
| vsprojects/ | | 03-May-2024 | - | 6,172 | 6,006 |
| AUTHORS | D | 03-May-2024 | 23 | 3 | 1 |
| Android.mk | D | 03-May-2024 | 1.2 KiB | 42 | 22 |
| COPYING | D | 03-May-2024 | 11.1 KiB | 203 | 169 |
| ChangeLog | D | 03-May-2024 | 10.3 KiB | 193 | 171 |
| INSTALL | D | 03-May-2024 | 15.2 KiB | 366 | 284 |
| MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | | |
| Makefile.am | D | 03-May-2024 | 11.3 KiB | 292 | 219 |
| Makefile.in | D | 03-May-2024 | 117.4 KiB | 1,919 | 1,708 |
| NEWS | D | 03-May-2024 | 0 | | |
| README | D | 03-May-2024 | 2 KiB | 44 | 35 |
| THANKS | D | 03-May-2024 | 987 | 47 | 45 |
| aclocal.m4 | D | 03-May-2024 | 34.5 KiB | 974 | 876 |
| autogen.sh | D | 03-May-2024 | 2 KiB | 66 | 28 |
| compile | D | 03-May-2024 | 2.7 KiB | 100 | 48 |
| config.guess | D | 03-May-2024 | 44.5 KiB | 1,534 | 1,318 |
| config.sub | D | 03-May-2024 | 33.3 KiB | 1,694 | 1,549 |
| configure | D | 03-May-2024 | 540.5 KiB | 18,082 | 13,856 |
| configure.ac | D | 03-May-2024 | 3.9 KiB | 118 | 98 |
| depcomp | D | 03-May-2024 | 18.2 KiB | 631 | 407 |
| install-sh | D | 03-May-2024 | 13.3 KiB | 521 | 344 |
| ltmain.sh | D | 03-May-2024 | 237.8 KiB | 8,414 | 6,482 |
| missing | D | 03-May-2024 | 11.2 KiB | 377 | 281 |
| mkinstalldirs | D | 03-May-2024 | 3.5 KiB | 163 | 112 |
README
1open-vcdiff is an encoder and decoder for the VCDIFF format, as described in
2RFC 3284 : The VCDIFF Generic Differencing and Compression Data Format
3(http://www.ietf.org/rfc/rfc3284.txt)
4A library with a simple API is included, as well as a command-line executable
5that can apply the encoder and decoder to source, target, and delta files.
6For further details, please refer to:
7http://code.google.com/p/open-vcdiff/wiki/HowToUseOpenVcdiff
8
9See INSTALL for (generic) installation instructions for C++: basically
10 ./configure && make && make install
11
12This should compile the unit tests as well as "vcdiff", a simple command-line
13utility to run the encoder and decoder. Typical usage of vcdiff is as follows
14(the "<" and ">" are file redirect operations, not optional arguments):
15 vcdiff encode -dictionary file.dict < target_file > delta_file
16 vcdiff decode -dictionary file.dict < delta_file > target_file
17To see the command-line syntax of vcdiff, use "vcdiff --help" or just "vcdiff".
18
19To call the encoder from C++ code, assuming that dictionary, target, and delta
20are all std::string objects:
21#include <google/vcencoder.h> // Read this file for interface details
22[...]
23 open_vcdiff::VCDiffEncoder encoder(dictionary.data(), dictionary.size());
24 encoder.SetFormatFlags(open_vcdiff::VCD_FORMAT_INTERLEAVED);
25 encoder.Encode(target.data(), target.size(), &delta);
26
27Calling the decoder is just as simple:
28#include <google/vcdecoder.h> // Read this file for interface details
29[...]
30 open_vcdiff::VCDiffDecoder decoder;
31 decoder.Decode(dictionary.data(), dictionary.size(), delta, &target);
32
33When using the encoder, the C++ application must be linked with the library
34options -lvcdcom and -lvcdenc; when using the decoder, it must be linked with
35-lvcdcom and -lvcddec.
36
37To verify that the package works on your system, especially after making
38modifications to the source code, please run the unit tests using
39 make check
40
41For further details, please refer to:
42http://code.google.com/p/open-vcdiff/wiki/HowToUseOpenVcdiff
43
44