LeviLamina
Loading...
Searching...
No Matches
StorageArea_windows.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/BasicDirectoryStorageArea.h"
7#include "mc/deps/core/file/FileStorageArea.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class FileSystem_windows; }
12namespace Core { class PathView; }
13namespace Core { class Result; }
14// clang-format on
15
16namespace Core {
17
18class StorageArea_windows : public ::Core::BasicDirectoryStorageArea<::Core::FileSystem_windows> {
19public:
20 // member variables
21 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 3
35 virtual bool supportsSizeQuery() const /*override*/;
36
37 // vIndex: 4
38 virtual uint64 getTotalSize() const /*override*/;
39
40 // vIndex: 5
41 virtual ::Core::Result getUsedSize(uint64& outUsedSize) /*override*/;
42
43 // vIndex: 6
44 virtual void setUsedSizeOverride(uint64 fileSize) /*override*/;
45
46 // vIndex: 7
47 virtual void clearUsedSizeOverride() /*override*/;
48
49 // vIndex: 13
50 virtual bool supportsExtendSize() const /*override*/;
51
52 // vIndex: 14
53 virtual bool canExtendSize() const /*override*/;
54
55 // vIndex: 15
56 virtual void resetCanAttemptExtendSize() /*override*/;
57
58 // vIndex: 16
59 virtual ::Core::Result getExtendSizeThreshold(uint64& outExtendSizeThreshold) const /*override*/;
60
61 // vIndex: 17
62 virtual void
63 attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback) /*override*/;
64
65 // vIndex: 18
66 virtual void preemptiveExtendSize(
67 uint64 const expectedContentSize,
68 ::std::function<void()> successCallback,
69 ::std::function<void()> failureCallback
70 ) /*override*/;
71
72 // vIndex: 19
73 virtual uint64 getAvailableUserStorageSize() /*override*/;
74
75 // vIndex: 33
76 virtual ::Core::FileStorageArea::StorageAreaSpaceInfo getStorageAreaSpaceInfo() /*override*/;
77
78 // vIndex: 35
79 virtual bool shouldRecordFileError(::Core::PathView path, ::std::error_code error) const /*override*/;
80
81 // vIndex: 22
82 virtual void flushImmediately() /*override*/;
83
84 // vIndex: 0
85 virtual ~StorageArea_windows() /*override*/ = default;
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCNAPI bool $supportsSizeQuery() const;
92
93 MCNAPI uint64 $getTotalSize() const;
94
95 MCNAPI ::Core::Result $getUsedSize(uint64& outUsedSize);
96
97 MCNAPI void $setUsedSizeOverride(uint64 fileSize);
98
100
101 MCNAPI bool $supportsExtendSize() const;
102
103 MCNAPI bool $canExtendSize() const;
104
106
107 MCNAPI ::Core::Result $getExtendSizeThreshold(uint64& outExtendSizeThreshold) const;
108
109 MCNAPI void $attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback);
110
112 uint64 const expectedContentSize,
113 ::std::function<void()> successCallback,
114 ::std::function<void()> failureCallback
115 );
116
118
119 MCNAPI ::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo();
120
121 MCNAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const;
122
123 MCNAPI void $flushImmediately();
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
132
133} // namespace Core
Definition BasicDirectoryStorageArea.h:8
Definition PathView.h:15
Definition StorageArea_windows.h:18
MCAPI uint64 $getTotalSize() const
static MCAPI void ** $vftable()
MCAPI void $flushImmediately()
MCAPI void $clearUsedSizeOverride()
MCAPI bool $supportsSizeQuery() const
MCAPI void $resetCanAttemptExtendSize()
MCAPI::Core::Result $getUsedSize(uint64 &outUsedSize)
MCAPI::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo()
MCAPI::Core::Result $getExtendSizeThreshold(uint64 &outExtendSizeThreshold) const
MCAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const
MCAPI bool $canExtendSize() const
MCAPI void $attemptExtendSize(int64 const &currentFreeSpace, ::std::function< void()> onCompleteCallback)
MCAPI void $preemptiveExtendSize(uint64 const expectedContentSize, ::std::function< void()> successCallback, ::std::function< void()> failureCallback)
MCAPI bool $supportsExtendSize() const
MCAPI void $setUsedSizeOverride(uint64 fileSize)
MCAPI uint64 $getAvailableUserStorageSize()
Definition Alias.h:14