AuroraRuntime/Include/Aurora/IO/IOPipeCallback.hpp

38 lines
756 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IIOBufferedStreamAvailable.hpp
Date: 2022-6-20
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
namespace Protocol
{
struct IProtocolStack;
}
struct IIOPipeInterceptor;
struct IIOBufferedStreamAvailable;
struct IOPipeCallback
{
EPipeCallbackType type;
struct
{
AuSPtr<IIOBufferedStreamAvailable> pOnData;
} handleBufferedStream;
struct
{
AuSPtr<IIOPipeInterceptor> pIntercepter;
AuSPtr<IStreamWriter> pWriter;
bool bFlushWriter { true };
bool bCloseWriter { false };
} forwardStream;
};
}