aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
AgeCommit message (Collapse)Author
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
2005-05-05Fixed some doxygen warningsMax Horn
svn-id: r17923
2005-04-28Moved Stream::eos() to ReadStream::eos()Max Horn
svn-id: r17853
2005-04-22* Added new virtual base class 'Stream', ReadStream andMax 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-03-30Forgot to init _encbyte in MemoryReadStream.Eugene Sandulenko
svn-id: r17301
2005-03-30Support for direct reading from NES ROM:Eugene Sandulenko
o extend MemoryReadStream with XOR facility o implement MemoryWriteStream o _fileHandle now is a reference to BaseScummFile class and is created on the fly o implement ScummNESFile class which is basically extract_mm_nes utility o update NES MM md5's due to above changes NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename ROM to standard conventional name 'Maniac Mansion (XXX).nes' svn-id: r17300
2005-01-09Ensure these headers match the rest of ScummVMMax Horn
svn-id: r16505
2005-01-09Added new interface SeekableReadStreamMax Horn
svn-id: r16493
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-11Remove the 24 bit read/write methods -- we don't use them anymore and they ↵Max Horn
are weird anyway ;-) svn-id: r16037
2004-12-11Modified version of patch #1082777 (common/stream optimization)Max Horn
svn-id: r16034
2004-07-19Changed order of initialisation in XORReadStream::XORReadStream() to match ↵Bertrand Augereau
order of declaration, to avoid a pedantic warning svn-id: r14273
2004-06-27Cleanup for MemoryReadStream; made it match the File-class interfaceMax Horn
svn-id: r14086
2004-06-24Extended ReadMemoryStream class with seek methodEugene Sandulenko
svn-id: r14030
2004-05-04Enchance ReadStream and MemoryReadStream with 24bits operations as wellEugene Sandulenko
as tell() and rewind() methods, as needed by SAGA engine. svn-id: r13772
2004-05-03Well, now we use MemoryReadStream at least in SAGA engine.Eugene Sandulenko
Concept proved itself to be elegant and successful svn-id: r13770
2004-04-29Added signed read/write methods to the Stream classesMax Horn
svn-id: r13680