摘要 |
A method is disclosed for decompressing in-place an adjusted monotone compressed file having a first portion containing compression codewords and a second portion containing plain text, into a decompressed file having a size and containing plain text. The method comprising the following steps. First, a memory buffer is allocated having the size of the decompressed file. Then the adjusted monotone compressed file is stored in the bottom of the buffer. Finally, the compression codewords in the first portion of the adjusted monotone compressed file are decompressed to produce plain text of a corresponding portion of the decompressed file in the top of the buffer. A method is also disclosed for compressing a source file into an adjusted monotone compressed file. The method comprises the following steps. First, the source file is monotone compressed into a compressed file containing compression codewords. Then the compressed file is adjusted to produce an adjusted monotone compressed file having a first portion containing compression codewords and a second portion containing plain text.
|