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
17class MemoryMappedFileAccess : public ::IFileAccess {
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 virtual uint64 fread(void* buffer, uint64 count, uint64 file, void*) const /*override*/;
33 // NOLINTEND
34
35 public:
36 // virtual function thunks
37 // NOLINTBEGIN
38 MCNAPI uint64 $fread(void* buffer, uint64 count, uint64 file, void*) const;
39
40
41 // NOLINTEND
42
43 public:
44 // vftables
45 // NOLINTBEGIN
46 MCNAPI static void** $vftable();
47 // NOLINTEND
48 };
49
51 public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual uint64 fwrite(void const* buffer, uint64 count, uint64 file, void*) /*override*/;
55 // NOLINTEND
56
57 public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI uint64 $fwrite(void const* buffer, uint64 count, uint64 file, void*);
61
62
63 // NOLINTEND
64
65 public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70 };
71
72 struct StreamDetails {
73 public:
74 // member variables
75 // NOLINTBEGIN
81 // NOLINTEND
82
83 public:
84 // prevent constructor by default
85 StreamDetails& operator=(StreamDetails const&);
86 StreamDetails(StreamDetails const&);
87 StreamDetails();
88
89 public:
90 // member functions
91 // NOLINTBEGIN
93 // NOLINTEND
94
95 public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100 };
101
102 struct StreamHandle {
103 public:
104 // member variables
105 // NOLINTBEGIN
108 // NOLINTEND
109
110 public:
111 // prevent constructor by default
112 StreamHandle& operator=(StreamHandle const&);
113 StreamHandle(StreamHandle const&);
114 StreamHandle();
115 };
116
117public:
118 // member variables
119 // NOLINTBEGIN
128 // NOLINTEND
129
130public:
131 // prevent constructor by default
132 MemoryMappedFileAccess& operator=(MemoryMappedFileAccess const&);
133 MemoryMappedFileAccess(MemoryMappedFileAccess const&);
134 MemoryMappedFileAccess();
135
136public:
137 // virtual functions
138 // NOLINTBEGIN
139 virtual ~MemoryMappedFileAccess() /*override*/;
140
141 virtual void* fopen(::Core::PathView filePath, ::std::string const& mode) /*override*/;
142
143 virtual int fclose(void* file) /*override*/;
144
145 virtual int fseek(void* file, int64 offset, int origin) /*override*/;
146
147 virtual int64 ftell(void* file) /*override*/;
148
149 virtual ::IFileReadAccess const* getReadInterface() const /*override*/;
150
151 virtual ::IFileWriteAccess* getWriteInterface() /*override*/;
152
153 virtual void unload() /*override*/;
154 // NOLINTEND
155
156public:
157 // member functions
158 // NOLINTBEGIN
159 MCNAPI MemoryMappedFileAccess(
160 ::Bedrock::NotNullNonOwnerPtr<::IFileAccess> const& inner,
161 ::std::unique_ptr<::FileAccessTransforms> transforms
162 );
163 // NOLINTEND
164
165public:
166 // static variables
167 // NOLINTBEGIN
168 MCNAPI static ::FileAccessTransforms const& EMPTY_TRANSFORMS();
169 // NOLINTEND
170
171public:
172 // constructor thunks
173 // NOLINTBEGIN
174 MCNAPI void* $ctor(
175 ::Bedrock::NotNullNonOwnerPtr<::IFileAccess> const& inner,
176 ::std::unique_ptr<::FileAccessTransforms> transforms
177 );
178 // NOLINTEND
179
180public:
181 // destructor thunk
182 // NOLINTBEGIN
183 MCNAPI void $dtor();
184 // NOLINTEND
185
186public:
187 // virtual function thunks
188 // NOLINTBEGIN
189 MCNAPI void* $fopen(::Core::PathView filePath, ::std::string const& mode);
190
191 MCNAPI int $fclose(void* file);
192
193 MCNAPI int $fseek(void* file, int64 offset, int origin);
194
195 MCNAPI int64 $ftell(void* file);
196
197 MCNAPI ::IFileReadAccess const* $getReadInterface() const;
198
200
201 MCNAPI void $unload();
202
203
204 // NOLINTEND
205
206public:
207 // vftables
208 // NOLINTBEGIN
209 MCNAPI static void** $vftable();
210 // NOLINTEND
211};
Definition PathView.h:19
Definition FileAccessTransforms.h:5
Definition IFileAccess.h:15
Definition IFileReadAccess.h:5
Definition IFileWriteAccess.h:5
Definition MemoryMappedFileAccess.h:28
MCAPI uint64 $fread(void *buffer, uint64 count, uint64 file, void *) const
Definition MemoryMappedFileAccess.h:50
MCAPI uint64 $fwrite(void const *buffer, uint64 count, uint64 file, void *)
MCAPI::IFileReadAccess const * $getReadInterface() const
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::IFileAccess > const &inner, ::std::unique_ptr<::FileAccessTransforms > transforms)
static MCAPI void ** $vftable()
MCAPI int $fclose(void *file)
static MCAPI ::FileAccessTransforms const & EMPTY_TRANSFORMS()
MCAPI::IFileWriteAccess * $getWriteInterface()
MCAPI int64 $ftell(void *file)
MCAPI void * $fopen(::Core::PathView filePath, ::std::string const &mode)
MCAPI int $fseek(void *file, int64 offset, int origin)
STL namespace.
Definition MemoryMappedFileAccess.h:72
Definition MemoryMappedFileAccess.h:102
Definition buffer.h:5
Definition Alias.h:14