Implemented Packer::verifyOverlappingDecompression().

committer: mfx <mfx> 978465508 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-01-02 19:58:28 +00:00
parent d328e834b1
commit 572082ac2b
14 changed files with 58 additions and 58 deletions
+1 -9
View File
@@ -96,15 +96,7 @@ void MemBuffer::alloc(unsigned size)
void MemBuffer::allocForCompression(unsigned uncompressed_size)
{
// Idea:
// We allocate the buffer at an offset of 4096 so
// that we could do an in-place decompression for
// verifying our overlap_overhead at the end
// of packing.
//
// See Packer::verifyOverlappingDecompression().
alloc(uncompressed_size + uncompressed_size/8 + 256, MAX_OVERLAP_OVERHEAD);
alloc(uncompressed_size + uncompressed_size/8 + 256, 0);
}