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 bool isNearTransactionLimit(uint64 windowSize) const;
40
41 MCNAPI ::Core::Result
42 open(::Core::PathView fileName, ::Core::FileOpenMode openMode, ::Core::FileBufferingMode bufferingMode);
43
44 MCNAPI ~File();
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> cleanPath(::Core::PathView entryPath);
51
52#ifdef LL_PLAT_C
53 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>
54 cleanPathSeparators(::Core::PathView entryPath);
55#endif
56
57 MCNAPI static ::Core::Result writeCreateOrAppendFileData(
59 uint64 offset,
60 uint64 numBytesToWrite,
61 ::std::vector<uchar> const& buffer,
62 ::brstd::source_location sourceLocation
63 );
64
65 MCNAPI static ::Core::Result writeCreateOrAppendFileData(
67 uint64 offset,
68 uint64 numBytesToWrite,
69 uchar const* buffer,
71 );
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79};
80
81} // namespace Core
Definition FileOpenMode.h:7
MCAPI::Core::Result close()
MCAPI void $dtor()
MCAPI ~File()
static MCAPI ::Core::Result writeCreateOrAppendFileData(::Core::PathView path, uint64 offset, uint64 numBytesToWrite, ::std::vector< uchar > const &buffer, ::brstd::source_location sourceLocation)
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > cleanPath(::Core::PathView entryPath)
MCAPI bool isNearTransactionLimit(uint64 windowSize) const
MCAPI::Core::Result open(::Core::PathView fileName, ::Core::FileOpenMode openMode, ::Core::FileBufferingMode bufferingMode)
static MCAPI ::Core::Result writeCreateOrAppendFileData(::Core::PathView path, uint64 offset, uint64 numBytesToWrite, uchar const *buffer, ::brstd::source_location)
Definition PathView.h:19
Definition Result.h:11
Definition source_location.h:7
Definition buffer.h:5
Definition Alias.h:14