ECToo / xdelta

Automatically exported from code.google.com/p/xdelta
0 stars 0 forks source link

Saving decoder state #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(posting "support request" here since I don't know how to contact dev directly)

When using the C/C++ API, is there any way to save the decoder state to a
file? Namely, I want to patch file A using A-to-B.xd3 to produce B,
interrupt it in the middle saving decoder state, maybe even shut down
computer here, and be able to resume the patching. Reason is: the patching
would be done while A-to-B.xd3 is being *downloaded*! If download is
paused, I want to be able to resume the patching.

If this isn't possible, only alternative is save the xdelta to disk while
it downloads and also patch. If download is interrupted, when resumed,
append to existing xdelta file, but restart patching from the beginning.
Or, just wait for the whole file to finish downloading before starting
patching...

Original issue reported on code.google.com by nicolas....@gmail.com on 2 Oct 2007 at 10:45

GoogleCodeExporter commented 9 years ago
You can always e-mail josh.macdonald@gmail.com, but I prefer this forum since
everyone can read and follow-up.

Interesting request. VCDIFF is a window-oriented protocol, so it's fairly easy 
to
imagine suspending/resuming at a window boundary without a lot of complicated 
state
saving.  There are a few options in the VCDIFF file-header that affect how all
windows are decoded, and at various times people have proposed putting an 
addit4ional
field in the VCDIFF window-header to give its offset in the reconstructed file 
(e.g.,
to suppose in-place reconstruction algorithms), which would be a help in your 
case.

I don't have any plans to pursue this, maybe some third party library would 
make it
easier. I don't want to read/write new file formats.

Original comment by josh.mac...@gmail.com on 3 Oct 2007 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by josh.mac...@gmail.com on 14 Dec 2007 at 9:40