Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-11-23 | COMMON: Remove XOR decoding capability from MemoryReadStream | Max Horn | |
svn-id: r54436 | |||
2010-11-19 | COMMON: Split common/stream.h into several headers | Max Horn | |
svn-id: r54385 | |||
2010-11-18 | COMMON: Change wrapBufferedWriteStream() to always disposes wrapped stream | Max Horn | |
This is the only we need right now, and it saves a few bytes per instance. The template approach I used before has the drawback that it increases the binary size, which negates the benefit. Thanks to LordHoto for pointing this out. svn-id: r54344 | |||
2010-11-18 | COMMON: Turn BufferedWriteStream into a template class, with ↵ | Max Horn | |
disposeParentStream as param svn-id: r54336 | |||
2010-11-18 | COMMON: Make implementation of Buffered*Stream classes internal | Max Horn | |
svn-id: r54326 | |||
2010-11-18 | COMMON: Fix incorrect use of assert() macro | Max Horn | |
The assert() macro may be compiled to be empty. In that case, its arguments are *NOT* evaluated. Hence, things like assert(doSomething()) must not be used whenever doSomething() has important side effects. Also document BufferedWriteStream::flushBuffer() and explain why it exists parallel to BufferedWriteStream::flush(). svn-id: r54322 | |||
2010-10-12 | JANITORAL: Clean trailing whitespaces. | Jordi Vilalta Prat | |
svn-id: r53160 | |||
2010-09-14 | COMMON: remove virtual functions from BufferedStreams | Yotam Barnoy | |
As Max pointed out to me, they don't work as expected when called from constructors/destructors. svn-id: r52724 | |||
2010-08-25 | COMMON: Fix eos handling in BufferedReadStream | Willem Jan Palenstijn | |
This makes it pass the test added in r52382. svn-id: r52389 | |||
2010-08-25 | COMMON: fixed EOS handling in BufferedReadStream and BufferedSeekableReadStream | Yotam Barnoy | |
EOS problem was causing Discworld to crash and zip files not to load on the PSP. svn-id: r52377 | |||
2010-08-24 | COMMON: implemented BufferedWriteStream and fixed bug in BufferedReadStream | Yotam Barnoy | |
I need the write buffering for the new version of the PSP streams and thought the simplest way to implement it would be along the lines of BufferedReadStream. Sadly, I found a nasty little bug in BRS but that's taken care of. Also, I adapted these streams for target-specific memory allocation by using virtual functions for allocation/deallocation. svn-id: r52325 | |||
2010-06-15 | Fix spelling, cleanup | Max Horn | |
svn-id: r49843 | |||
2010-06-15 | Added seek() method to MemoryWriteStreamDynamic. | Eugene Sandulenko | |
If it deserves a separate class, shout. svn-id: r49750 | |||
2009-12-30 | Rename Common::Stream::readLine_NEW to readLine | Max Horn | |
svn-id: r46779 | |||
2009-10-18 | Introduced new type Common::DisposeAfterUse::Flag | Max Horn | |
svn-id: r45233 | |||
2009-09-30 | Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵ | Max Horn | |
things) svn-id: r44495 | |||
2009-05-04 | Fix valgrind warning | Eugene Sandulenko | |
svn-id: r40309 | |||
2009-03-05 | Fix for bug #2664460: Various SeekableReadStream::seek() implementations (as ↵ | Max Horn | |
well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions svn-id: r39135 | |||
2008-12-22 | Fixed indentation and removed whitespaces at the end of line | Jordi Vilalta Prat | |
svn-id: r35481 | |||
2008-12-03 | Get rid of readLine_OLD for good | Max Horn | |
svn-id: r35229 | |||
2008-09-14 | Big patch changing semantics of ReadStream::eos(): | Willem Jan Palenstijn | |
eos() now only returns true _after_ trying to read past the end of the stream. This has a large potential for regressions. Please test! svn-id: r34549 | |||
2008-09-13 | Big patch changing the signature of various Stream methods (some ports may ↵ | Max Horn | |
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514 | |||
2008-09-06 | Added some unit tests for Stream::readLine_NEW, and clarified that ↵ | Max Horn | |
readLine_NEW is essentially fgets in disguise svn-id: r34384 | |||
2008-09-03 | Fixed Stream::readLine implementation to match its doxygen comment | Max Horn | |
svn-id: r34316 | |||
2008-09-03 | Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; ↵ | Max Horn | |
added a new alternate SeekableReadStream::readLine() instead svn-id: r34315 | |||
2008-07-30 | Changed BufferedReadStream to not permanently decrease its buffer size at ↵ | Max Horn | |
the end of a stream (this would fail when using BufferedSeekableReadStream and then seeking back from the end); this also fixes a bug which let you seek back beyond the start of a stream (not that we currently support that in other streams) svn-id: r33436 | |||
2008-07-29 | Added two new classes, BufferedReadStream & BufferedSeekableReadStream, as ↵ | Max Horn | |
proposed on scummvm-devel svn-id: r33419 | |||
2008-07-21 | Silence a warning which complains about using an uninitialized variable. | Kari Salminen | |
svn-id: r33169 | |||
2008-07-20 | New SeekableReadStream::readLine_NEW() method, closely modelled after fgets, ↵ | Max Horn | |
w/o the line length limitations of the old eekableReadStream::readLine() (which it will replace, after the feature freeze has been lifted) svn-id: r33139 | |||
2007-09-19 | Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵ | Nicola Mettifogo | |
been updated. svn-id: r28966 | |||
2007-05-30 | Updated legal headers in source files, based on what Pidgin (the IM client ↵ | Max Horn | |
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024 | |||
2007-02-20 | Added new ReadStream::readStream method which can be used to read a portion ↵ | Max Horn | |
of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream svn-id: r25754 | |||
2007-02-19 | Enhance (Seekable)SubReadStream so be able to (optionally) dispose the ↵ | Max Horn | |
parent stream after it's been used (simplifies memory management for client code) svn-id: r25732 | |||
2006-11-13 | Fix compile | Travis Howell | |
svn-id: r24716 | |||
2006-11-13 | Patch #1583931: (Seekable)SubReadStream | Max Horn | |
svn-id: r24713 | |||
2006-02-11 | Change CVS keywords to SVN keywords | Max Horn | |
svn-id: r20510 | |||
2006-01-30 | Fixes a bug when loading the theme config file from a directory instead of ↵ | Johannes Schickel | |
the zip file. svn-id: r20310 | |||
2006-01-18 | Update copyright notice | Eugene Sandulenko | |
svn-id: r20088 | |||
2005-10-18 | Update FSF address. Eek. Actually that took place on May 1, 2005 | Eugene Sandulenko | |
svn-id: r19142 | |||
2005-07-30 | Remove trailing whitespaces. | Eugene Sandulenko | |
svn-id: r18604 | |||
2005-06-24 | When including files from common/, explicitly use the common/ prefix | Max Horn | |
svn-id: r18444 | |||
2005-04-22 | * Added new virtual base class 'Stream', ReadStream and | Max Horn | |
WriteStream are now subclasses of it. * Added new methods eos(), ioFailed(), clearIOFailed() to all streams. This allows better error checking. * SaveFile classes take advantage of these new standard stream APIS * Removed File::gets() * Added SeekableReadStream::readLine() (replaces File::gets) * Added WriteStream::writeString, for convenience svn-id: r17752 | |||
2005-01-09 | Since _pos is unsigned it's always >= 0, so testing for negativity will | Torbjörn Andersson | |
generate a warning in GCC. svn-id: r16496 | |||
2005-01-09 | Added new interface SeekableReadStream | Max Horn | |
svn-id: r16493 | |||
2005-01-01 | Updated copyright | Max Horn | |
svn-id: r16398 | |||
2004-12-11 | Modified version of patch #1082777 (common/stream optimization) | Max Horn | |
svn-id: r16034 | |||
2004-05-04 | Enchance ReadStream and MemoryReadStream with 24bits operations as well | Eugene Sandulenko | |
as tell() and rewind() methods, as needed by SAGA engine. svn-id: r13772 | |||
2004-04-29 | Added signed read/write methods to the Stream classes | Max Horn | |
svn-id: r13680 | |||
2004-04-17 | Introduce ReadStream and WriteStream (as explained in my File class design ↵ | Max Horn | |
mails on scummvm-devel) svn-id: r13595 |