Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-10-03 | COMMON: Add Missing Switch Default Cases to Stream Seek Methods | D G Turner | |
These are flagged by GCC if -Wswitch-default is enabled. | |||
2019-05-12 | COMMON: Fix seek return values, memory stream use in create_titanic | Paul Gilbert | |
2018-05-10 | COMMON: Use nullptr instead of NULL or 0 where appropriate | Bastien Bouclet | |
2018-04-15 | JANITORIAL: Fix whitespace | Adrian Frühwirth | |
2017-01-14 | COMMON: Add ReadStream::readPascalString() | Eugene Sandulenko | |
2016-10-26 | COMMON: Added debug method for printing out stream contents | Eugene Sandulenko | |
2016-08-04 | COMMON: 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-02-18 | COMMON: Make GPL headers consistent in themselves. | Johannes Schickel | |
2013-01-28 | Merge pull request #305 from giucam/bufferedseekable | Johannes Schickel | |
Make BufferedSeekableReadStream use the buffer with SEEK_SET and SEEK_END | |||
2013-01-28 | COMMON: Fix successive seeks in BufferedSeekableReadStream. | Johannes Schickel | |
This fixes the failing test case added in da8eeb9dbed2102764b3ca0697d6882bae0402cc. Thanks to wjp for his input on this. | |||
2013-01-26 | JANITORIAL: Use "End of anonymous namespace" as comment for anonymous ↵ | Johannes Schickel | |
namespaces. | |||
2013-01-26 | JANITORIAL: Enforce "} // End of namespace" with a single space after }. | Johannes Schickel | |
2013-01-26 | COMMON: Make BufferedSeekableReadStream use the buffer with SEEK_SET and ↵ | Giulio Camuffo | |
SEEK_END | |||
2012-03-11 | COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream. | Johannes Schickel | |
It actually inherits from SeekableSubReadStream, so it should be named accordingly. | |||
2011-08-07 | COMMON: Add DisposablePtr<T>, which replaces many repeated implementations ↵ | Christoph Mallon | |
of a dispose flag. | |||
2011-05-12 | GIT: Clean up: Suppress SVN tags, now useless | strangerke | |
2011-05-06 | COMMON: Add a class SafeSubReadStream | Sven Hesse | |
SafeSubReadStream is basically a SeekableSubReadStream that re-seek()s the parent stream before each read(). That way, more than one SafeSubReadStream of the same parent stream can be used safely at the same time, at the cost of increasing IO. | |||
2011-04-28 | JANITORIAL: Reduce header dependencies in shared code | Ori Avtalion | |
Some backends may break as I only compiled SDL | |||
2011-04-19 | COMMON: Do not call ReadStream::eos in SubReadStream::read. | Johannes Schickel | |
Instead I moved the call to ReadStream::eos into SubReadStream::eos. fuzzie pointed out that in certain cases this resulted in a lot of eos calls before. Those were rather needlessly, since checking the eos bit of the decorated stream in read does not give any advantage over checking it when the client code really wants to test the eos flag. | |||
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 |