LeviLamina
Loading...
Searching...
No Matches
FileRequestBody.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/http/IRequestBody.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Core { class Path; }
11// clang-format on
12
13namespace Bedrock::Http {
14
15class FileRequestBody : public ::Bedrock::Http::Internal::IRequestBody {
16public:
17 // member variables
18 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 FileRequestBody& operator=(FileRequestBody const&);
27 FileRequestBody(FileRequestBody const&);
28 FileRequestBody();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33#ifdef LL_PLAT_S
34 virtual ::Bedrock::Http::Internal::IRequestBody::ReadResult read(::gsl::span<uchar>) /*override*/;
35#else // LL_PLAT_C
36 virtual ::Bedrock::Http::Internal::IRequestBody::ReadResult read(::gsl::span<uchar> destination) /*override*/;
37#endif
38
39 virtual uint64 getSize() /*override*/;
40
41 virtual void cancel() /*override*/;
42
43 virtual ::std::string const& getLoggableSource() const /*override*/;
44
45 virtual ::gsl::span<uchar const> getLoggableData() const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51#ifdef LL_PLAT_C
52 MCNAPI explicit FileRequestBody(::Core::Path filename);
53
54 MCNAPI void _closeIfEof();
55
56 MCNAPI bool _lazyOpenFileHandle();
57#endif
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63#ifdef LL_PLAT_C
64 MCNAPI static ::std::shared_ptr<::Bedrock::Http::FileRequestBody> create(::Core::Path filename);
65#endif
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71#ifdef LL_PLAT_C
72 MCNAPI void* $ctor(::Core::Path filename);
73#endif
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCNAPI ::Bedrock::Http::Internal::IRequestBody::ReadResult $read(::gsl::span<uchar> destination);
81
82 MCNAPI uint64 $getSize();
83
84 MCNAPI void $cancel();
85
86 MCNAPI ::std::string const& $getLoggableSource() const;
87
88 MCNAPI ::gsl::span<uchar const> $getLoggableData() const;
89#endif
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
100
101} // namespace Bedrock::Http
static MCAPI void ** $vftable()
Definition IRequestBody.h:7
Definition Path.h:12
Definition Alias.h:14