aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
AgeCommit message (Collapse)Author
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-14COMMON: remove virtual functions from BufferedStreamsYotam Barnoy
As Max pointed out to me, they don't work as expected when called from constructors/destructors. svn-id: r52724
2010-09-14COMMON: Remove dangerous virtual keywords.Willem Jan Palenstijn
See r52722. svn-id: r52723
2010-08-25COMMON: Fix eos handling in BufferedReadStreamWillem Jan Palenstijn
This makes it pass the test added in r52382. svn-id: r52389
2010-08-25COMMON: fixed EOS handling in BufferedReadStream and BufferedSeekableReadStreamYotam Barnoy
EOS problem was causing Discworld to crash and zip files not to load on the PSP. svn-id: r52377
2010-08-24COMMON: implemented BufferedWriteStream and fixed bug in BufferedReadStreamYotam 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-15Added seek() method to MemoryWriteStreamDynamic.Eugene Sandulenko
If it deserves a separate class, shout. svn-id: r49750
2010-05-27correct typoMax Horn
svn-id: r49270
2010-01-08Move DisposeAfterUse::Flag from Common to global namespace, and into a new ↵Max Horn
header common/types.h svn-id: r47180
2009-12-31Remove the getBeginOffset() hack from Common::SeekableReadStream and ↵Matthew Hoops
introduce QTPlayer::setChunkBeginOffset() to allow specifying what offset to use. svn-id: r46786
2009-12-30Rename Common::Stream::readLine_NEW to readLineMax Horn
svn-id: r46779
2009-12-30spellingMax Horn
svn-id: r46778
2009-12-29Add Mohawk engine code. Part 2/3: common code changes.Eugene Sandulenko
svn-id: r46728
2009-12-15Got rid of ReadStream::ioFailed()Max Horn
svn-id: r46379
2009-10-18Introduced new type Common::DisposeAfterUse::FlagMax Horn
svn-id: r45233
2009-09-11Slightly modified version of Patch #2838562: Improve endian.h and stream.hMax Horn
svn-id: r44027
2009-09-03Fix a new/free mismatch when creating a MemoryReadStream from a ↵Matthew Hoops
MemoryWriteStreamDynamic by changing MemoryWriteStreamDynamic to use malloc/free instead of new/delete[]. This could have affected ScummEngine_v4::prepareSavegame(). svn-id: r43918
2009-08-24reverting changes from patch 43696 that shouldnt have been committedNorbert Lange
svn-id: r43697
2009-08-24Enable alternative palettse for Amiga Monkey Island - Patch ID: 2819787Norbert Lange
use tables for palette colors instead of code with constants svn-id: r43696
2009-08-17- Add note about that modifing the parent stream will mess up ↵Johannes Schickel
SeekableSubReadStream and SeekableSubReadStreamEndian. - Link to SubReadStream documentation from SeekableSubReadStream and SeekableSubReadStreamEndian. svn-id: r43465
2009-07-29Removed redundant File::ioFailed() implementation; also turned ↵Max Horn
ReadStream::ioFailed from a virtual into an inline method svn-id: r42911
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-04-24Fixed typo.Torbjörn Andersson
svn-id: r40121
2009-03-15Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the ↵Max Horn
SCI engine svn-id: r39428
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-12-03Get rid of readLine_OLD for goodMax Horn
svn-id: r35229
2008-09-15Fix SubReadStream by initing _eos to false in the constructor (spotted ↵Max Horn
thanks to our unit tests) svn-id: r34555
2008-09-14Big 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-14Fixed a typo & clarified a commentMax Horn
svn-id: r34541
2008-09-13Big 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-06Added some unit tests for Stream::readLine_NEW, and clarified that ↵Max Horn
readLine_NEW is essentially fgets in disguise svn-id: r34384
2008-09-03Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; ↵Max Horn
added a new alternate SeekableReadStream::readLine() instead svn-id: r34315
2008-08-04Moved the OutSaveFile::finalize method to WriteStream; implemented ↵Max Horn
DumpFile::flush() svn-id: r33604
2008-07-30Reordered initialization order to kill a ton of warnings.Nicola Mettifogo
svn-id: r33452
2008-07-30Changed 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-29Added two new classes, BufferedReadStream & BufferedSeekableReadStream, as ↵Max Horn
proposed on scummvm-devel svn-id: r33419
2008-07-20New 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
2008-04-13Added eriktorbjorn's MemoryWriteStreamDynamic class - a stream that grows as ↵Filippos Karapetis
it's written to svn-id: r31498
2008-03-27Implemented SeekableSubReadStreamEndian moddeled after MemoryReadStreamEndian.Johannes Schickel
svn-id: r31270
2008-03-26Added some inlines to MemoryReadStreamEndian.Johannes Schickel
svn-id: r31248
2007-09-23Moved MemoryStreamEndian from Saga to Common.Eugene Sandulenko
svn-id: r29038
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-05-30Updated 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-03-04Removing _ptrOrig (hi Torbjorn, have fun recompiling)Max Horn
svn-id: r25980
2007-02-25TypoMax Horn
svn-id: r25861
2007-02-25Add some doxygen comments to Common::StreamMax Horn
svn-id: r25859
2007-02-20Added 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-20Removed XORReadStream (it was unused); enhanced MemoryReadStream to be able ↵Max Horn
to dispose the memory block it wraps (simplifies memory management) svn-id: r25748
2007-02-19Enhance (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-13Patch #1583931: (Seekable)SubReadStreamMax Horn
svn-id: r24713