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"
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);
Definition: concatstream.h:39
bool eos() const override
Definition: concatstream.h:54
bool seek(int64 offset, int whence=SEEK_SET) override
int64 pos() const override
Definition: concatstream.h:52
void clearErr() override
Definition: concatstream.h:56
uint32 read(void *dataPtr, uint32 dataSize) override
bool err() const override
Definition: concatstream.h:55
int64 size() const override
Definition: concatstream.h:53
Definition: algorithm.h:29