LeviLamina
Loading...
Searching...
No Matches
MemoryMappedFileAccess.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/file_system/IFileAccess.h"
7#include "mc/deps/core/file/file_system/IFileReadAccess.h"
8#include "mc/deps/core/file/file_system/IFileWriteAccess.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10
11// auto generated forward declare list
12// clang-format off
14namespace Core { class PathView; }
15// clang-format on
16
18public:
19 // MemoryMappedFileAccess inner types declare
20 // clang-format off
23 struct StreamDetails;
24 struct StreamHandle;
25 // clang-format on
26
27 // MemoryMappedFileAccess inner types define
29 public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 1
33 virtual uint64 fread(void* buffer, uint64 size, uint64 count, void* file) const /*override*/;
34
35 // vIndex: 0
36 virtual ~MemoryMappedFileReadAccess() /*override*/;
37 // NOLINTEND
38
39 public:
40 // destructor thunk
41 // NOLINTBEGIN
42 MCFOLD void $dtor();
43 // NOLINTEND
44
45 public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCAPI uint64 $fread(void* buffer, uint64 size, uint64 count, void* file) const;
49 // NOLINTEND
50
51 public:
52 // vftables
53 // NOLINTBEGIN
54 MCAPI static void** $vftable();
55 // NOLINTEND
56 };
57
59 public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 1
63 virtual uint64 fwrite(void const* buffer, uint64 size, uint64 count, void* file) /*override*/;
64
65 // vIndex: 0
66 virtual ~MemoryMappedFileWriteAccess() /*override*/;
67 // NOLINTEND
68
69 public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCFOLD void $dtor();
73 // NOLINTEND
74
75 public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI uint64 $fwrite(void const* buffer, uint64 size, uint64 count, void* file);
79 // NOLINTEND
80
81 public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86 };
87
89 public:
90 // member variables
91 // NOLINTBEGIN
97 // NOLINTEND
98
99 public:
100 // prevent constructor by default
101 StreamDetails& operator=(StreamDetails const&);
104
105 public:
106 // member functions
107 // NOLINTBEGIN
108 MCAPI ~StreamDetails();
109 // NOLINTEND
110
111 public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCFOLD void $dtor();
115 // NOLINTEND
116 };
117
119 public:
120 // member variables
121 // NOLINTBEGIN
124 // NOLINTEND
125
126 public:
127 // prevent constructor by default
128 StreamHandle& operator=(StreamHandle const&);
130 StreamHandle();
131 };
132
133public:
134 // member variables
135 // NOLINTBEGIN
144 // NOLINTEND
145
146public:
147 // prevent constructor by default
151
152public:
153 // virtual functions
154 // NOLINTBEGIN
155 // vIndex: 0
156 virtual ~MemoryMappedFileAccess() /*override*/;
157
158 // vIndex: 1
159 virtual void* fopen(::Core::PathView filePath, ::std::string const& mode) /*override*/;
160
161 // vIndex: 2
162 virtual int fclose(void* file) /*override*/;
163
164 // vIndex: 3
165 virtual int fseek(void* file, int64 offset, int origin) /*override*/;
166
167 // vIndex: 4
168 virtual int64 ftell(void* file) /*override*/;
169
170 // vIndex: 5
171 virtual ::IFileReadAccess const* getReadInterface() const /*override*/;
172
173 // vIndex: 6
174 virtual ::IFileWriteAccess* getWriteInterface() /*override*/;
175
176 // vIndex: 7
177 virtual void unload() /*override*/;
178 // NOLINTEND
179
180public:
181 // member functions
182 // NOLINTBEGIN
184 ::Bedrock::NotNullNonOwnerPtr<::IFileAccess> const& inner,
185 ::std::unique_ptr<::FileAccessTransforms> transforms
186 );
187 // NOLINTEND
188
189public:
190 // static variables
191 // NOLINTBEGIN
192 MCAPI static ::FileAccessTransforms const& EMPTY_TRANSFORMS();
193 // NOLINTEND
194
195public:
196 // constructor thunks
197 // NOLINTBEGIN
198 MCAPI void* $ctor(
199 ::Bedrock::NotNullNonOwnerPtr<::IFileAccess> const& inner,
200 ::std::unique_ptr<::FileAccessTransforms> transforms
201 );
202 // NOLINTEND
203
204public:
205 // destructor thunk
206 // NOLINTBEGIN
207 MCAPI void $dtor();
208 // NOLINTEND
209
210public:
211 // virtual function thunks
212 // NOLINTBEGIN
213 MCAPI void* $fopen(::Core::PathView filePath, ::std::string const& mode);
214
215 MCAPI int $fclose(void* file);
216
217 MCAPI int $fseek(void* file, int64 offset, int origin);
218
219 MCAPI int64 $ftell(void* file);
220
221 MCFOLD ::IFileReadAccess const* $getReadInterface() const;
222
223 MCAPI ::IFileWriteAccess* $getWriteInterface();
224
225 MCAPI void $unload();
226 // NOLINTEND
227
228public:
229 // vftables
230 // NOLINTBEGIN
231 MCAPI static void** $vftable();
232 // NOLINTEND
233};
Definition PathView.h:16
Definition FileAccessTransforms.h:5
Definition IFileAccess.h:15
Definition IFileReadAccess.h:5
Definition IFileWriteAccess.h:5
Definition MemoryMappedFileAccess.h:28
Definition MemoryMappedFileAccess.h:58
Definition MemoryMappedFileAccess.h:17
STL namespace.
Definition MemoryMappedFileAccess.h:88
Definition MemoryMappedFileAccess.h:118
Definition buffer.h:5
Definition Alias.h:14