Reece Wilson
1ff9feb303
[+] 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
50 lines
1.1 KiB
C++
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;
|
|
};
|
|
} |