AuroraRuntime/Include/Aurora/IO/IIOPipeWork.hpp
Reece Wilson 1ff9feb303 [+] Initial heap stat counter API
[+] Upcoming failure categories
[+] Updated SysPushXXX prototypes
[*] Restore bandwidth OnTick position for extrapolate (using current frame stats, ref to last) fractional lerps into the future with ref to average
[*] Compression.cpp AuList<AuUInt8> upgrade was incomplete & could've been improved with modern apis
2022-12-08 19:34:15 +00:00

50 lines
1.1 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IIOPipeWork.hpp
Date: 2022-6-20
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
struct IIOPipeWork
{
/**
* @brief begins the operation
* @return
*/
virtual bool Start() = 0;
/**
* @brief terminates the operation
* @return
*/
virtual bool End() = 0;
/**
* @brief time from the au epoch. see: AuTime::.
* @return
*/
virtual AuInt64 GetStartTickMS() = 0;
/**
* @brief time from the au epoch. see: AuTime::.
* @return
*/
virtual AuInt64 GetLastTickMS() = 0;
/**
* @brief quick approximation of normalized bytes / second
* @return
*/
virtual double GetPredictedThroughput() = 0;
/**
* @brief bytes written to the stream (this will be one frame behind in the callback routine, if in on buffered data mode)
* @return
*/
virtual AuUInt64 GetBytesProcessed() = 0;
};
}