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: 0
82 virtual ~StorageArea_windows() /*override*/ = default;
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCNAPI bool $supportsSizeQuery() const;
89
90 MCNAPI uint64 $getTotalSize() const;
91
92 MCNAPI ::Core::Result $getUsedSize(uint64& outUsedSize);
93
94 MCNAPI void $setUsedSizeOverride(uint64 fileSize);
95
97
98 MCNAPI bool $supportsExtendSize() const;
99
100 MCNAPI bool $canExtendSize() const;
101
103
104 MCNAPI ::Core::Result $getExtendSizeThreshold(uint64& outExtendSizeThreshold) const;
105
106 MCNAPI void $attemptExtendSize(int64 const& currentFreeSpace, ::std::function<void()> onCompleteCallback);
107
109 uint64 const expectedContentSize,
110 ::std::function<void()> successCallback,
111 ::std::function<void()> failureCallback
112 );
113
115
116 MCNAPI ::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo();
117
118 MCNAPI bool $shouldRecordFileError(::Core::PathView path, ::std::error_code error) const;
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCNAPI static void** $vftable();
125 // NOLINTEND
126};
127
128} // 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 $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