Age | Commit message (Collapse) | Author |
|
The default value was DisposeAfterUse::NO, which made it very easy to
accidentally leak memory by omitting to specify a value.
|
|
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.
|
|
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.
|
|
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
|
|
There was a problem with file downloading in MinGW. Strangely, there is
no such problem in Visual Studio, yet this fixes the problem.
|
|
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.
|
|
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.
|
|
|
|
Fixes bug #6983: "SWORD25: long saving time"
|
|
|
|
|
|
|
|
Thanks to waltervn for noticing that MemoryWriteStream::write doesn't handle
setting the error indicator properly.
|
|
|
|
Some backends may break as I only compiled SDL
|
|
svn-id: r54441
|
|
svn-id: r54438
|
|
svn-id: r54436
|
|
svn-id: r54385
|