aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
AgeCommit message (Collapse)Author
2017-07-13STREAM: add read/write functions for float LE/BEyinsimei
2017-01-14COMMON: Add ReadStream::readPascalString()Eugene Sandulenko
2016-10-26COMMON: Added debug method for printing out stream contentsEugene Sandulenko
2016-09-29COMMON: Add ReadFloatLE to Common::ReadStreamEugene Sandulenko
2016-08-04COMMON: 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.
2015-01-04COMMON: Add missing readUint64/readSint64 to ReadStreamEndian.Johannes Schickel
2015-01-04COMMON: Put more 64-bit stuff under HAVE_INT64Eugene Sandulenko
2014-12-21COMMON: Fix typo that caused uint64 reads to return a uint32Adrian Astley
2014-09-16COMMON: Add support for endian-safe reading/writing of int64Adrian Astley
2014-08-29COMMON: Fix some Doxygen comments that seem wrong.Einar Johan Trøan Sømåen
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2011-05-18COMMON: Document that Stream API is meant to imitate ISO C FILE semanticsMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-11-26COMMON: Add an isBE() function to get the endianness of a ReadStreamEndianMatthew Hoops
svn-id: r54500
2010-11-23COMMON: Add SeekableReadStreamEndian classMax Horn
svn-id: r54445
2010-11-23COMMON: Remove default value for endianess in ReadStreamEndian subclassesMax Horn
svn-id: r54441
2010-11-23COMMON: Add ReadStreamEndian mixin classMax Horn
svn-id: r54438
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-18COMMON: Change wrapBufferedWriteStream() to always disposes wrapped streamMax 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-18COMMON: Make implementation of Buffered*Stream classes internalMax Horn
svn-id: r54326
2010-11-18COMMON: Fix incorrect use of assert() macroMax 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-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