aboutsummaryrefslogtreecommitdiff
path: root/common/zlib.cpp
AgeCommit message (Collapse)Author
2018-04-15JANITORIAL: Fix whitespaceAdrian Frühwirth
2016-08-04COMMON: Update GZipWriteStream::pos()Alexander Tkachev
Though it seemed the _wrapped stream should return valid position, it was always 0. That's why I've added a _pos field, which is updated in write() and returned in pos().
2016-08-04COMMON: Add WriteStream::pos()Alexander Tkachev
It returns int32, because some complex streams are derived from both WriteStream and ReadStream, and in ReadStream pos() returns int32, because -1 means an error. I had to change MemoryStream's uint32 to int32, which is probably not so good.
2014-03-28COMMON: Reduce the warnings related to backwards seeking in ZIP filesFilippos Karapetis
The warnings are now changed to debug statements, are only shown once per session (instead of once per stream) and are only enabled for debug builds.
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-02COMMON: SEEK_END offsets are negativeFilippos Karapetis
This was taken directly from the old code, which either used different semantics, or had a genuine bug
2013-11-02COMMON: Reenable SEEK_END seeking in GZipReadStream()Filippos Karapetis
This is needed by the "Mirage" Wintermute game. Vorbis can do backward seeking, thus we need to enable this for ZIP streams. Since this can be a potentially slow operation, we throw a warning (once per stream) when it occurs. Originally, SEEK_END seeks in GZipReadStream were disabled by commit 9138128f. Refer to patch #2050337 for more information.
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2013-01-26COMMON: Return NULL in wrapCompressedReadStream for compressed streams when ↵Johannes Schickel
ZLIB is disabled.
2012-08-28Merge remote-tracking branch 'origin/master' into tonyAlyssa Milburn
Conflicts: common/coroutines.cpp common/coroutines.h devtools/create_project/msbuild.cpp devtools/create_project/visualstudio.cpp
2012-07-18COMMON: Add an optional argument to wrapCompressedReadStream, to simplify ↵Einar Johan Trøan Sømåen
using streams that can't tell their size()
2012-05-28COMMON: Move InstallShield code to commonMatthew Hoops
The code also now works for both data compressed with sync bytes and without
2012-01-13COMMON: Enhance zlib interfaceAndrea Corna
2011-08-20COMMON: Add wrapper for inflating headerless zlib dataMatthew Hoops
2011-08-07COMMON: Remove superfluous Common:: qualifiers.Christoph Mallon
2011-08-07COMMON: Use ScopedPtr<> to simplify resource management.Christoph Mallon
2011-08-07COMMON: Simplify initialization of z_stream struct.Christoph Mallon
2011-08-04COMMON: Initialize more z_stream fields before calling inflateInit2.Alyssa Milburn
The zlib documentation and examples claim this is needed, as spotted by LordHoto.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-02COMMON: Fix compilation when zlib support is enabled.Johannes Schickel
2010-11-19COMMON: Push #include stream.h from zlib.h to zlib.cppMax Horn
svn-id: r54353
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-09-16Merged common/gzip-stream.* and common/zlib.*Max Horn
svn-id: r34578
2008-09-16Modified uncompress in common/zlib.h to return a bool, so that we don't have ↵Max Horn
to #include the real zlib.h; fixed PSP backend to not run uncompress inside an assert (which would cause it to not be invoked when turning off asserts) svn-id: r34576
2008-01-03Different zlib.h included paths for Symbian OS to differenciate between ↵Lars Persson
system and user includes svn-id: r30189
2007-12-28Added missing files from patch #1858158.Torbjörn Andersson
svn-id: r30043