diff options
author | Matthew Hoops | 2011-08-20 16:41:10 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-08-20 16:41:10 -0400 |
commit | f408456d14b12152727be31fe00f61b028f18c3b (patch) | |
tree | f13d81c1a63abf448edd10f0cbbcaa975621401a /common/zlib.h | |
parent | 59200bf426cc85b9ec49865010a035ce214bb2bd (diff) | |
download | scummvm-rg350-f408456d14b12152727be31fe00f61b028f18c3b.tar.gz scummvm-rg350-f408456d14b12152727be31fe00f61b028f18c3b.tar.bz2 scummvm-rg350-f408456d14b12152727be31fe00f61b028f18c3b.zip |
COMMON: Add wrapper for inflating headerless zlib data
Diffstat (limited to 'common/zlib.h')
-rw-r--r-- | common/zlib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/zlib.h b/common/zlib.h index 1925034310..7af7df0da8 100644 --- a/common/zlib.h +++ b/common/zlib.h @@ -41,6 +41,15 @@ class WriteStream; */ bool uncompress(byte *dst, unsigned long *dstLen, const byte *src, unsigned long srcLen); +/** + * Wrapper around zlib's inflate functions. This function will call the + * necessary inflate functions to uncompress data compressed with deflate + * but *not* with the standard zlib header. + * + * @return true on success (Z_OK or Z_STREAM_END), false otherwise + */ +bool inflateZlibHeaderless(byte *dst, uint dstLen, const byte *src, uint srcLen); + #endif /** |