• Home
Name Date Size #Lines LOC

..--

gflags/03-May-2024-6,2023,650

gtest/03-May-2024-26,28817,118

m4/03-May-2024-8,0057,176

man/03-May-2024-7964

packages/03-May-2024-571346

src/03-May-2024-22,69514,780

testdata/03-May-2024-11487

vsprojects/03-May-2024-6,1726,006

AUTHORSD03-May-202423 31

Android.mkD03-May-20241.2 KiB4222

COPYINGD03-May-202411.1 KiB203169

ChangeLogD03-May-202410.3 KiB193171

INSTALLD03-May-202415.2 KiB366284

MODULE_LICENSE_APACHE2D03-May-20240

Makefile.amD03-May-202411.3 KiB292219

Makefile.inD03-May-2024117.4 KiB1,9191,708

NEWSD03-May-20240

READMED03-May-20242 KiB4435

THANKSD03-May-2024987 4745

aclocal.m4D03-May-202434.5 KiB974876

autogen.shD03-May-20242 KiB6628

compileD03-May-20242.7 KiB10048

config.guessD03-May-202444.5 KiB1,5341,318

config.subD03-May-202433.3 KiB1,6941,549

configureD03-May-2024540.5 KiB18,08213,856

configure.acD03-May-20243.9 KiB11898

depcompD03-May-202418.2 KiB631407

install-shD03-May-202413.3 KiB521344

ltmain.shD03-May-2024237.8 KiB8,4146,482

missingD03-May-202411.2 KiB377281

mkinstalldirsD03-May-20243.5 KiB163112

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