AuroraRuntime/Source/IO/Adapters/AuIOAdapterSeeking.hpp

23 lines
569 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIOAdapterSeeking.hpp
Date: 2022-6-6
Author: Reece
***/
#pragma once
namespace Aurora::IO::Adapters
{
struct SeekingReader : IStreamReader
{
SeekingReader(const AuSPtr<ISeekingReader> &pReader);
virtual EStreamError IsOpen() override;
virtual EStreamError Read(const Memory::MemoryViewStreamWrite &parameters) override;
virtual void Close() override;
AuSPtr<ISeekingReader> pReader;
AuUInt uIndex {};
};
}