LeviLamina
Loading...
Searching...
No Matches
StreamFileDownloader.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/util/DownloaderResult.h"
7
#include "mc/util/DownloaderState.h"
8
#include "mc/util/IFileChunkDownloader.h"
9
10
// auto generated forward declare list
11
// clang-format off
12
struct
FileInfo
;
13
namespace
Bedrock::Http {
class
Request; }
14
// clang-format on
15
16
class
StreamFileDownloader
:
public
::IFileChunkDownloader
,
17
public
::std::enable_shared_from_this<::StreamFileDownloader> {
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
::ll::UntypedStorage<8, 32>
mUnka211d4;
22
::ll::UntypedStorage<8, 8>
mUnkd71e6f;
23
::ll::UntypedStorage<8, 64>
mUnkfb46b6;
24
::ll::UntypedStorage<8, 64>
mUnk82ed74;
25
::ll::UntypedStorage<8, 8>
mUnk402616;
26
::ll::UntypedStorage<8, 8>
mUnk89347f;
27
::ll::UntypedStorage<8, 8>
mUnk238343;
28
::ll::UntypedStorage<1, 1>
mUnk1c4b1c;
29
::ll::UntypedStorage<1, 1>
mUnkcb17b4;
30
::ll::UntypedStorage<8, 336>
mUnk6e3666;
31
// NOLINTEND
32
33
public
:
34
// prevent constructor by default
35
StreamFileDownloader
& operator=(
StreamFileDownloader
const
&);
36
StreamFileDownloader
(
StreamFileDownloader
const
&);
37
StreamFileDownloader
();
38
39
public
:
40
// virtual functions
41
// NOLINTBEGIN
42
// vIndex: 0
43
virtual
~StreamFileDownloader
()
/*override*/
=
default
;
44
45
// vIndex: 1
46
virtual
void
update()
/*override*/
;
47
48
// vIndex: 2
49
virtual
void
initRealmsFileDownloader(
50
::std::string
const
&,
51
int
const
,
52
::std::string
const
&,
53
::FileInfo
const
&,
54
uint64,
55
::std::string
const
&,
56
::std::function<
void
(::DownloaderResult)>
57
)
/*override*/
;
58
59
// vIndex: 3
60
virtual
void
initFileDownloader(
61
::std::string
const
&,
62
::std::string
const
&,
63
::FileInfo
const
&,
64
uint64,
65
uint64,
66
::std::string
const
&,
67
::std::function<
void
(::DownloaderResult)>
68
)
/*override*/
;
69
70
// vIndex: 4
71
virtual
void
downloadFile(
72
::std::function<
void
(::std::vector<uchar>, uint64, uint64, ::std::function<
void
(uint64,
bool
)>)>,
73
::std::function<
void
(::DownloaderState)>
74
)
/*override*/
;
75
76
// vIndex: 5
77
virtual
bool
canCancelDownload()
const
/*override*/
;
78
79
// vIndex: 6
80
virtual
void
cancelDownload()
/*override*/
;
81
82
// vIndex: 7
83
virtual
uint64 getDownloadTotalSize()
const
/*override*/
;
84
85
// vIndex: 8
86
virtual
uint64 getDownloadReceivedSize()
const
/*override*/
;
87
88
// vIndex: 9
89
virtual
float
getDownloadProgress()
const
/*override*/
;
90
91
// vIndex: 10
92
virtual ::Bedrock::Http::Request _makeRequest();
93
// NOLINTEND
94
95
public
:
96
// virtual function thunks
97
// NOLINTBEGIN
98
99
// NOLINTEND
100
};
IFileChunkDownloader
Definition
IFileChunkDownloader.h:14
StreamFileDownloader
Definition
StreamFileDownloader.h:17
FileInfo
Definition
FileInfo.h:10
ll::UntypedStorage
Definition
Alias.h:14
src
mc
util
StreamFileDownloader.h
Generated on Fri Jun 13 2025 05:04:56 for LeviLamina by
1.12.0