/*** Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved. File: IOAdapterAsyncStream.hpp Date: 2022-6-6 Author: Reece ***/ #pragma once namespace Aurora::IO { struct IAsyncStreamAdapater { virtual bool SetFlushOnWrite(bool value) = 0; virtual void ReserveBuffer(AuUInt length) = 0; virtual AuUInt GetReadOffset() = 0; virtual AuUInt SetReadOffset(AuUInt offset) = 0; virtual AuUInt GetWriteOffset() = 0; virtual AuUInt SetWriteOffset(AuUInt offset) = 0; virtual AuSPtr ToStreamReader() = 0; virtual AuSPtr ToStreamWriter() = 0; virtual AuSPtr ToWaitable() = 0; virtual bool Reset() = 0; }; AUKN_SYM AuSPtr NewAsyncStreamAdapter(const AuSPtr &transaction, bool isStream); }