Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
File.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/FileBufferingMode.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/string/BasicStackString.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Core { class FileOpenMode; }
13namespace Core { class PathView; }
14namespace Core { class Result; }
15namespace brstd { struct source_location; }
16// clang-format on
17
18namespace Core {
19
20class File {
21public:
22 // member variables
23 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 File& operator=(File const&);
31 File(File const&);
32 File();
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCNAPI ::Core::Result close();
38
39 MCNAPI ::Core::Result
40 open(::Core::PathView fileName, ::Core::FileOpenMode openMode, ::Core::FileBufferingMode bufferingMode);
41
42 MCNAPI ~File();
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> cleanPath(::Core::PathView entryPath);
49
50#ifdef LL_PLAT_C
51 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>
52 cleanPathSeparators(::Core::PathView entryPath);
53#endif
54
55 MCNAPI static ::Core::Result writeCreateOrAppendFileData(
57 uint64 offset,
58 uint64 numBytesToWrite,
59 uchar const* buffer,
60 ::brstd::source_location sourceLocation
61 );
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69};
70
71} // namespace Core
Definition FileOpenMode.h:7
MCAPI::Core::Result close()
MCAPI void $dtor()
static MCAPI ::Core::Result writeCreateOrAppendFileData(::Core::PathView path, uint64 offset, uint64 numBytesToWrite, uchar const *buffer, ::brstd::source_location sourceLocation)
MCAPI ~File()
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > cleanPath(::Core::PathView entryPath)
MCAPI::Core::Result open(::Core::PathView fileName, ::Core::FileOpenMode openMode, ::Core::FileBufferingMode bufferingMode)
Definition PathView.h:19
Definition Result.h:11
Definition source_location.h:7
Definition buffer.h:5
Definition Alias.h:14