Closed eitanmi closed 1 year ago
now, HDiffPatch no patch API like "push".
But you can refer to the description of the patch_single_stream()
function, which may be able to meet your needs.
For example, if you want to process new_data sequentially, you can use the out_newData->write
to got them.
Hi, Suppose I have the diff and the old data, and I'd like to read them chunk by chunk and slowly build the new data in memory. Can this be done using a fixed memory buffer?
Something like :
while (not at end of stream) { old_data = read(old_file) diff_data = read(diff_file)
// Chunk by chunk accumulate new data somehow... */ new_data += patch(old_data , diff_data , plugin);
}