Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
Make BufferedSeekableReadStream use the buffer with SEEK_SET and SEEK_END
|
|
This fixes the failing test case added in
da8eeb9dbed2102764b3ca0697d6882bae0402cc.
Thanks to wjp for his input on this.
|
|
namespaces.
|
|
|
|
SEEK_END
|
|
It actually inherits from SeekableSubReadStream, so it should be named
accordingly.
|
|
of a dispose flag.
|
|
|
|
SafeSubReadStream is basically a SeekableSubReadStream that
re-seek()s the parent stream before each read(). That way, more than
one SafeSubReadStream of the same parent stream can be used safely
at the same time, at the cost of increasing IO.
|
|
Some backends may break as I only compiled SDL
|
|
Instead I moved the call to ReadStream::eos into SubReadStream::eos.
fuzzie pointed out that in certain cases this resulted in a lot of eos calls
before. Those were rather needlessly, since checking the eos bit of the
decorated stream in read does not give any advantage over checking it when
the client code really wants to test the eos flag.
|
|
svn-id: r54436
|
|
svn-id: r54385
|
|
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
|
|
disposeParentStream as param
svn-id: r54336
|
|
svn-id: r54326
|
|
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
|
|
svn-id: r53160
|
|
As Max pointed out to me, they don't work as expected when called from constructors/destructors.
svn-id: r52724
|
|
This makes it pass the test added in r52382.
svn-id: r52389
|
|
EOS problem was causing Discworld to crash and zip files not to load on the PSP.
svn-id: r52377
|
|
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
|
|
svn-id: r49843
|
|
If it deserves a separate class, shout.
svn-id: r49750
|
|
svn-id: r46779
|
|
svn-id: r45233
|
|
things)
svn-id: r44495
|
|
svn-id: r40309
|
|
well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions
svn-id: r39135
|
|
svn-id: r35481
|
|
svn-id: r35229
|
|
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
|
|
need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
|
|
readLine_NEW is essentially fgets in disguise
svn-id: r34384
|
|
svn-id: r34316
|
|
added a new alternate SeekableReadStream::readLine() instead
svn-id: r34315
|
|
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
|
|
proposed on scummvm-devel
svn-id: r33419
|
|
svn-id: r33169
|
|
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
|
|
been updated.
svn-id: r28966
|
|
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
|
|
of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream
svn-id: r25754
|
|
parent stream after it's been used (simplifies memory management for client code)
svn-id: r25732
|
|
svn-id: r24716
|
|
svn-id: r24713
|
|
svn-id: r20510
|
|
the zip file.
svn-id: r20310
|