2022-06-11 23:01:27 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2022-12-17 20:14:19 +00:00
|
|
|
File: AuIOAdapterSeeking.hpp
|
2022-06-11 23:01:27 +00:00
|
|
|
Date: 2022-6-6
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::IO
|
|
|
|
{
|
|
|
|
struct SeekingReader : IStreamReader
|
|
|
|
{
|
2022-12-17 20:14:19 +00:00
|
|
|
SeekingReader(const AuSPtr<ISeekingReader> &pReader);
|
2022-06-11 23:01:27 +00:00
|
|
|
|
|
|
|
virtual EStreamError IsOpen() override;
|
|
|
|
virtual EStreamError Read(const Memory::MemoryViewStreamWrite ¶meters) override;
|
|
|
|
virtual void Close() override;
|
2022-12-17 20:14:19 +00:00
|
|
|
|
|
|
|
AuSPtr<ISeekingReader> pReader;
|
|
|
|
AuUInt uIndex {};
|
2022-06-11 23:01:27 +00:00
|
|
|
};
|
|
|
|
}
|