mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
COMMON: Make MemoryReadStreamEndian inherit from SeekableReadStreamEndian
This commit is contained in:
parent
9dfaabb47c
commit
8939609787
@ -78,10 +78,17 @@ public:
|
||||
* This is a MemoryReadStream subclass which adds non-endian
|
||||
* read methods whose endianness is set on the stream creation.
|
||||
*/
|
||||
class MemoryReadStreamEndian : public MemoryReadStream, public ReadStreamEndian {
|
||||
class MemoryReadStreamEndian : public MemoryReadStream, public SeekableReadStreamEndian {
|
||||
public:
|
||||
MemoryReadStreamEndian(const byte *buf, uint32 len, bool bigEndian)
|
||||
: MemoryReadStream(buf, len), ReadStreamEndian(bigEndian) {}
|
||||
: MemoryReadStream(buf, len), SeekableReadStreamEndian(bigEndian) {}
|
||||
|
||||
int32 pos() const { return MemoryReadStream::pos(); }
|
||||
int32 size() const { return MemoryReadStream::size(); }
|
||||
|
||||
bool seek(int32 offs, int whence = SEEK_SET) { return MemoryReadStream::seek(offs, whence); }
|
||||
|
||||
bool skip(uint32 offset) { return MemoryReadStream::seek(offset, SEEK_CUR); }
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user