23 lines
554 B
C++
23 lines
554 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: IOAdapterSeeking.hpp
|
||
|
Date: 2022-6-6
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO
|
||
|
{
|
||
|
struct SeekingReader : IStreamReader
|
||
|
{
|
||
|
AuSPtr<ISeekingReader> reader;
|
||
|
AuUInt index {};
|
||
|
|
||
|
SeekingReader(const AuSPtr<ISeekingReader> &reader);
|
||
|
|
||
|
virtual EStreamError IsOpen() override;
|
||
|
virtual EStreamError Read(const Memory::MemoryViewStreamWrite ¶meters) override;
|
||
|
virtual void Close() override;
|
||
|
};
|
||
|
}
|