AuroraRuntime/Include/Aurora/IO/IStreamReader.hpp
Jamie Reece Wilson 076e255432 [*] Redo AuIO::ReadAll(IStreamReader *that, Memory::ByteBuffer &buffer, ...)
[+] EStreamError::eErrorByteBuffer
[+] EStreamError::eErrorOutOfMemory
2023-10-24 11:27:20 +01:00

21 lines
590 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IStreamReader.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
AUKN_INTERFACE(IStreamReader,
AUI_METHOD(EStreamError, IsOpen, ()),
AUI_METHOD(EStreamError, Read, (const Memory::MemoryViewStreamWrite&, paramters)),
AUI_METHOD(void, Close, ())
);
inline EStreamError ReadAll(IStreamReader* that, Memory::ByteBuffer& buffer, AuOptional<bool> bBreakOnFirstMismatchLength = true);
}
#include "IStreamReader.inl" // ReadAll utility