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.