23 lines
554 B
C++
23 lines
554 B
C++
|
/***
|
||
|
Copyright (C) 2024 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuIOAdapterRandom.hpp
|
||
|
Date: 2024-1-3
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Adapters
|
||
|
{
|
||
|
struct RandomStreamReader : IStreamReader
|
||
|
{
|
||
|
RandomStreamReader(AuSPtr<RNG::IRandomDevice> pRandomDevice);
|
||
|
|
||
|
EStreamError IsOpen() override;
|
||
|
EStreamError Read(const Memory::MemoryViewStreamWrite ¶meters) override;
|
||
|
void Close() override;
|
||
|
|
||
|
private:
|
||
|
AuSPtr<RNG::IRandomDevice> pRandomDevice;
|
||
|
};
|
||
|
}
|