aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
AgeCommit message (Collapse)Author
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
2006-04-26Added a 'skip' method to SeekableReadStream (just an alias for seek(X, ↵Max Horn
SEEK_CUR)) svn-id: r22178
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-13Improved savefile error handling:Marcus Comstedt
* New flush() method in WriteStream class to flush pending I/O, in order to detect any I/O errors * Use of flush() and ioFailed() added to scumm engine save function * Dreamcast backend extended to support the new checks svn-id: r19066
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24Whitespace changes.Torbjörn Andersson
svn-id: r18449
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-06-20Added virtual destructor, to silence a few more GCC 4 warningsMax Horn
svn-id: r18419