LeviLamina
Loading...
Searching...
No Matches
UnzipFileLibZip.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/UnzipFile.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/util/UnzipResult.h"
9
10// auto generated forward declare list
11// clang-format off
12class IFileAccess;
13namespace Core { class PathView; }
14// clang-format on
15
16namespace Core {
17
18class UnzipFileLibZip : public ::Core::UnzipFile {
19public:
20 // member variables
21 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 UnzipFileLibZip& operator=(UnzipFileLibZip const&);
36 UnzipFileLibZip(UnzipFileLibZip const&);
37 UnzipFileLibZip();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~UnzipFileLibZip() /*override*/;
43
44 virtual ::Core::ZipUtils::UnzipResult locateFile(char const* fileName, int caseSensitivity) /*override*/;
45
46 virtual ::Core::ZipUtils::UnzipResult goToFirstFile() /*override*/;
47
48 virtual ::Core::ZipUtils::UnzipResult goToNextFile() /*override*/;
49
50 virtual ::std::string getCurrentFileName() const /*override*/;
51
52 virtual ::Core::ZipUtils::UnzipResult openCurrentFileForReading() /*override*/;
53
54 virtual ::Core::ZipUtils::UnzipResult closeCurrentFile() /*override*/;
55
56 virtual void readCurrentFileContentsIntoMemory(::std::string& str) /*override*/;
57
58 virtual void
59 readCurrentFileContents(uint64 bufferSize, ::std::function<void(int, void const*)> onReadCallback) /*override*/;
60
61 virtual uint64 getTotalFilesInZip() /*override*/;
62
63 virtual uint64 getCurrentFileUncompressedSize() /*override*/;
64
65 virtual bool _isGood() const /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCNAPI void $dtor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCNAPI ::Core::ZipUtils::UnzipResult $locateFile(char const* fileName, int caseSensitivity);
90
91 MCNAPI ::Core::ZipUtils::UnzipResult $goToFirstFile();
92
93 MCNAPI ::Core::ZipUtils::UnzipResult $goToNextFile();
94
95 MCNAPI ::std::string $getCurrentFileName() const;
96
97 MCNAPI ::Core::ZipUtils::UnzipResult $openCurrentFileForReading();
98
99 MCNAPI ::Core::ZipUtils::UnzipResult $closeCurrentFile();
100
101 MCNAPI void $readCurrentFileContentsIntoMemory(::std::string& str);
102
103 MCNAPI void $readCurrentFileContents(uint64 bufferSize, ::std::function<void(int, void const*)> onReadCallback);
104
105 MCNAPI uint64 $getTotalFilesInZip();
106
108
109 MCNAPI bool $_isGood() const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
120
121} // namespace Core
Definition NonOwnerPointer.h:9
Definition PathView.h:19
MCAPI bool $_isGood() const
MCAPI::Core::ZipUtils::UnzipResult $goToNextFile()
MCAPI void * $ctor(::Bedrock::NonOwnerPointer<::IFileAccess > fileAccess, ::Core::PathView zipPath)
static MCAPI void ** $vftable()
MCAPI::Core::ZipUtils::UnzipResult $closeCurrentFile()
MCAPI void $readCurrentFileContentsIntoMemory(::std::string &str)
MCAPI::Core::ZipUtils::UnzipResult $locateFile(char const *fileName, int caseSensitivity)
MCAPI uint64 $getCurrentFileUncompressedSize()
MCAPI UnzipFileLibZip(::Bedrock::NonOwnerPointer<::IFileAccess > fileAccess, ::Core::PathView zipPath)
MCAPI void $readCurrentFileContents(uint64 bufferSize, ::std::function< void(int, void const *)> onReadCallback)
MCAPI uint64 $getTotalFilesInZip()
MCAPI::Core::ZipUtils::UnzipResult $goToFirstFile()
MCAPI::std::string $getCurrentFileName() const
MCAPI::Core::ZipUtils::UnzipResult $openCurrentFileForReading()
Definition UnzipFile.h:18
Definition IFileAccess.h:15
Definition Alias.h:14