Jamie Reece Wilson
72a3513a04
[+] IRandomDevice::ToStreamReader [+] AuIO::Adapters::NewRandomAdapter [+] AuIO::Adapters::NewNOPsReadAdapter [+] AuIO::Adapters::NewNOPsSeekingAdapter [+] AuIO::Adapters::NewNOPsWriteAdapter [+] AuIO::Adapters::NewZerosReadAdapter [+] AuIO::Adapters::NewZerosSeekingAdapter
33 lines
907 B
C++
33 lines
907 B
C++
/***
|
|
Copyright (C) 2024 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuIOAdapterNOPs.hpp
|
|
Date: 2024-1-3
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Adapters
|
|
{
|
|
struct NOPsStreamReader : IStreamReader
|
|
{
|
|
EStreamError IsOpen() override;
|
|
EStreamError Read(const Memory::MemoryViewStreamWrite ¶meters) override;
|
|
void Close() override;
|
|
};
|
|
|
|
struct NOPsStreamSeekingReader : ISeekingReader
|
|
{
|
|
EStreamError IsOpen() override;
|
|
EStreamError ArbitraryRead(AuUInt uOffset, const Memory::MemoryViewStreamWrite ¶meters) override;
|
|
void Close() override;
|
|
};
|
|
|
|
struct NOPsStreamWriter : IStreamWriter
|
|
{
|
|
EStreamError IsOpen() override;
|
|
EStreamError Write(const Memory::MemoryViewStreamRead ¶meters) override;
|
|
void Close() override;
|
|
void Flush() override;
|
|
};
|
|
} |