22 #ifndef COMMON_CONCATSTREAM_H 23 #define COMMON_CONCATSTREAM_H 25 #include "common/array.h" 26 #include "common/ptr.h" 27 #include "common/stream.h" 42 ParentStreamArray _parentStreams;
46 uint32 _totalSize, _linearPos;
47 uint32 _volume, _volumePos;
52 int64
pos()
const override {
return _linearPos; }
53 int64
size()
const override {
return _totalSize; }
54 bool eos()
const override {
return _eos; }
55 bool err()
const override {
return _err; }
60 bool seek(int64 offset,
int whence = SEEK_SET)
override;
61 uint32
read(
void *dataPtr, uint32 dataSize)
override;
62 bool seekToVolume(
int volume, int64 offset);
67 #endif // COMMON_CONCATSTREAM_H void clearErr() override
Definition: concatstream.h:56
bool eos() const override
Definition: concatstream.h:54
int64 pos() const override
Definition: concatstream.h:52
uint32 read(void *dataPtr, uint32 dataSize) override
Definition: algorithm.h:29
bool seek(int64 offset, int whence=SEEK_SET) override
bool err() const override
Definition: concatstream.h:55
int64 size() const override
Definition: concatstream.h:53
Definition: concatstream.h:39