- Streaming: StreamingManager, Manifests, Storage (.part files, write queue), Transport (HTTP split download, throttle), Tracker/StartupReport, streaming filestack verbs (s_streamstack, StreamingOpen), RepairCache static - URL: HttpRequest, InternetCallback, ReadResponseData, DownloadURL - Mopaq write path: SFileCreateArchive/CreateFile/WriteFile, IOMpqWriteUnit, WriteArchiveChanges, RebuildHashTable, listfile acquire/release; SComp::Compress with RLE/zlib/bzip2/pkware compressors; MPQEncrypt::Encrypt - LaunchChildProcessWithArguments, Debug::DefaultCallback/Breakpoint - Earlier batches: ComSat, Battlenet Tumor, Glue/Ui/WowServices fixes, luaL_error returns in Script_ files Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
29 lines
667 B
C++
29 lines
667 B
C++
#ifndef ENGINE_SOURCE_COMSAT_COMSATRUNNINGAVERAGECALCULATOR_H
|
|
#define ENGINE_SOURCE_COMSAT_COMSATRUNNINGAVERAGECALCULATOR_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/ComSat/ComSatInterface.h"
|
|
|
|
namespace ComSat {
|
|
|
|
class RunningAverageCalculator {
|
|
public:
|
|
/* 0008 */ Allocator* m_allocator;
|
|
/* 000C */ double* m_values;
|
|
/* 0010 */ uint32_t m_count;
|
|
/* 0014 */ uint32_t m_index;
|
|
/* 0018 */ double m_sum;
|
|
|
|
virtual ~RunningAverageCalculator();
|
|
|
|
RunningAverageCalculator(Allocator& allocator);
|
|
double GetCurrentAverage();
|
|
void Init(double value, uint32_t count);
|
|
void SubmitData(double value);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|