Mercurial > flash_v2
diff packages/services/compress/zlib/current/src/compress.c @ 1651:91a37e2314f4
Upgrade to zlib-1.2.1
| author | gthomas |
|---|---|
| date | Mon, 24 May 2004 19:33:34 +0000 |
| parents | c92d7972c02c |
| children |
line wrap: on
line diff
--- a/packages/services/compress/zlib/current/src/compress.c +++ b/packages/services/compress/zlib/current/src/compress.c @@ -1,10 +1,11 @@ /* compress.c -- compress a memory buffer * Copyright (C) 1995-2002 Jean-loup Gailly. - * For conditions of distribution and use, see copyright notice in zlib.h + * For conditions of distribution and use, see copyright notice in zlib.h */ /* @(#) $Id$ */ +#define ZLIB_INTERNAL #ifdef __ECOS__ #include <cyg/compress/zlib.h> #else @@ -70,3 +71,13 @@ int ZEXPORT compress (dest, destLen, sou { return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); } + +/* =========================================================================== + If the default memLevel or windowBits for deflateInit() is changed, then + this function needs to be updated. + */ +uLong ZEXPORT compressBound (sourceLen) + uLong sourceLen; +{ + return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; +}
