LeviLamina
Loading...
Searching...
No Matches
UnzipFile.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/UnzipFileLibrary.h"
7#include "mc/deps/core/file/UnzipResult.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
12class IFileAccess;
13namespace Core { class Path; }
14// clang-format on
15
16namespace Core {
17
18class UnzipFile {
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 0
23 virtual ~UnzipFile();
24
25 // vIndex: 1
26 virtual bool isGood() const = 0;
27
28 // vIndex: 2
29 virtual ::Core::ZipUtils::UnzipResult locateFile(char const*, int) = 0;
30
31 // vIndex: 3
32 virtual ::Core::ZipUtils::UnzipResult goToFirstFile() = 0;
33
34 // vIndex: 4
35 virtual ::Core::ZipUtils::UnzipResult goToNextFile() = 0;
36
37 // vIndex: 5
38 virtual ::std::string getCurrentFileName() const = 0;
39
40 // vIndex: 6
41 virtual ::Core::ZipUtils::UnzipResult openCurrentFileForReading() = 0;
42
43 // vIndex: 7
44 virtual ::Core::ZipUtils::UnzipResult closeCurrentFile() = 0;
45
46 // vIndex: 8
47 virtual void readCurrentFileContentsIntoMemory(::std::string&) = 0;
48
49 // vIndex: 9
50 virtual void readCurrentFileContents(uint64, ::std::function<void(int, void const*)>) = 0;
51
52 // vIndex: 10
53 virtual uint64 getTotalFilesInZip() = 0;
54
55 // vIndex: 11
56 virtual uint64 getCurrentFileUncompressedSize() = 0;
57 // NOLINTEND
58
59public:
60 // static functions
61 // NOLINTBEGIN
62 MCAPI static ::std::unique_ptr<::Core::UnzipFile> create(
63 ::Bedrock::NotNullNonOwnerPtr<::IFileAccess> fileAccess,
64 ::Core::Path const& zipPath,
65 ::Core::UnzipFileLibrary library
66 );
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCAPI void $dtor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86};
87
88} // namespace Core
Definition Path.h:15
Definition UnzipFile.h:18
Definition IFileAccess.h:15
Definition Path.h:16