Attach Extra Information TO A ZIP File.

xiaoxiao2021-03-14  205

origin:

Yesterday, a compression algorithm was packaged, provided to other departments, but then they have the requirements of this compression package operation, that is,

This compressed package to provide a certain size space is allowed to be stored, such as version, etc.

After some tests, I found a better way: add information directly on the tail of the compressed package, which does not affect this compression package. Because of compression / solution

The compression algorithm should be streaming, and it has a complete verification.

Pesudo Code:

Handle Hfile = Createfile (..., Open_EXISTING ...);

DWORD dwmovedlen = setfilepointer (HFile, dwattachlen, null, file_end); // Append space.

STENDOFFILE (HFILE); // set Physical Position.

CloseHandle (HFILE);

By changingwang 2006-03-17.

转载请注明原文地址:https://www.9cbs.com/read-129216.html

New Post(0)