aboutsummaryrefslogtreecommitdiff
path: root/common/memstream.h
AgeCommit message (Collapse)Author
2019-10-02COMMON: Add Default Cases to Switch Statements in Memstream ClassesD G Turner
These are flagged by GCC if -Wswitch-default is enabled. This avoids possible hard to diagnose bugs if the whence int parameter is accidently set to an unexpected value.
2019-05-12COMMON: Fix seek return values, memory stream use in create_titanicPaul Gilbert
2019-05-12COMMON: Created SeekableWriteStream classPaul Gilbert
2018-05-10COMMON: Use nullptr instead of NULL or 0 where appropriateBastien Bouclet
2018-04-15JANITORIAL: Fix whitespaceAdrian Frühwirth
2017-09-22COMMON: Remove DisposeAfterUse default value from dynamic write memory streamsBastien Bouclet
The default value was DisposeAfterUse::NO, which made it very easy to accidentally leak memory by omitting to specify a value.
2017-08-20COMMON: Implement SeekableReadStream interface for MemoryReadWriteStreamColin Snover
This allows MemoryReadWriteStream to be passed successfully to functions that use the SeekableReadStream type so that they can call the `pos` method, like the DPCMStream class of the VMD decoder.
2016-08-24COMMON: Fix WriteStream::pos() once againAlexander Tkachev
MemoryReadWriteStream now returns int32, not uint32. It actually doesn't ever return -1 to indicate that an error occured, so uint32 was a better choice, but that's what is used in WriteStream base class now. That method is abstract, so that's also why OutSaveFile had to override it.
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Fix MemoryReadWriteStreamAlexander Tkachev
There was a problem with file downloading in MinGW. Strangely, there is no such problem in Visual Studio, yet this fixes the problem.
2016-08-24CLOUD: Rewrite NetworkReadStreamAlexander Tkachev
Now it is based on MemoryReadWriteStream, which is introduced by this commit. This stream is using ring buffer and is dynamically increasing its size when necessary.
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.
2016-07-02COMMON: Make MemoryWriteStreamDynamic private members protectedWillem Jan Palenstijn
2016-03-28COMMON: Use better reallocation strategy in MemoryWriteStreamDynamic.Eugene Sandulenko
Fixes bug #6983: "SWORD25: long saving time"
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-05-17RECORDER: Implement Events RecorderEugene Sandulenko
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2012-10-09COMMON: Properly handle error indicator in MemoryWriteStream.Johannes Schickel
Thanks to waltervn for noticing that MemoryWriteStream::write doesn't handle setting the error indicator properly.
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-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-23COMMON: Remove XOR decoding capability from MemoryReadStreamMax Horn
svn-id: r54436
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385