LeviLamina
Loading...
Searching...
No Matches
ThrottledFileWriteEstimator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Core::WriteThrottledOS { class OSWriteThrottleTracker; }
8// clang-format on
9
10namespace Core::WriteThrottledOS {
11
13public:
14 // ThrottledFileWriteEstimator inner types declare
15 // clang-format off
16 struct WriteTimeEstimate;
17 // clang-format on
18
19 // ThrottledFileWriteEstimator inner types define
20 struct WriteTimeEstimate {
21 public:
22 // member variables
23 // NOLINTBEGIN
28 // NOLINTEND
29
30 public:
31 // prevent constructor by default
32 WriteTimeEstimate& operator=(WriteTimeEstimate const&);
33 WriteTimeEstimate(WriteTimeEstimate const&);
34 WriteTimeEstimate();
35 };
36
37public:
38 // static functions
39 // NOLINTBEGIN
40 MCNAPI_C static ::Core::WriteThrottledOS::ThrottledFileWriteEstimator::WriteTimeEstimate getTimeToWrite(
41 int recoverLeewayHintMb,
43 uint64 size,
44 ::std::optional<uint64> startingBudget,
45 ::std::optional<uint64> maxWriteSpeedBytes,
46 ::std::chrono::nanoseconds const& timeDiffbeforeImpacted,
47 ::std::chrono::nanoseconds const& timeDiffbeforeImpactedWhileWaiting
48 );
49 // NOLINTEND
50};
51
52} // namespace Core::WriteThrottledOS
Definition OSWriteThrottleTracker.h:7
Definition ThrottledFileWriteEstimator.h:12
Definition Alias.h:14