Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ZipUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/file/ZipResult.h"
8#include "mc/deps/core/string/BasicStackString.h"
9#include "mc/util/UnzipResult.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Core { class PathView; }
14namespace Core::ZipUtils { class UnzipSettings; }
15namespace Core::ZipUtils { class ZipProgress; }
16namespace Core::ZipUtils { class ZipSettings; }
17// clang-format on
18
19namespace Core::ZipUtils {
20// functions
21// NOLINTBEGIN
22MCNAPI ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> _zipEncodedPathToUTF8(::Core::PathView path);
23
24MCNAPI bool getFilenames(
25 ::Core::PathView zipPath,
26 ::std::vector<::Core::PathBuffer<::std::string>>& result,
27 ::Core::ZipUtils::UnzipSettings const& unzipSettings
28);
29
30#ifdef LL_PLAT_C
31MCNAPI ::std::string readAssetFileZipped_DEPRECATED(::Core::PathView zippedFolder, ::Core::PathView filename);
32#endif
33
34MCNAPI ::Core::ZipUtils::UnzipResult unzipInTransaction(
35 ::Core::PathView zipInputPath,
36 ::Core::PathView outputFolderPath,
37 ::Core::ZipUtils::ZipProgress& progress,
38 bool useLowMemMode,
39 ::Core::ZipUtils::UnzipSettings const& unzipSettings
40);
41
42MCNAPI ::Core::ZipUtils::ZipResult
43zip(::Core::PathView inputPathIn,
44 ::Core::PathView zipOutputPath,
45 ::Core::ZipUtils::ZipProgress& progress,
46 bool useLowMemMode,
47 ::Core::ZipUtils::ZipSettings const& zipSettings);
48
49#ifdef LL_PLAT_C
50MCNAPI ::Core::ZipUtils::ZipResult
51zip(::std::vector<::Core::PathBuffer<::std::string>> const& filesToZip,
52 ::Core::PathView zipOutputPath,
53 ::Core::ZipUtils::ZipProgress& progress,
54 bool useLowMemMode,
55 ::std::function<::std::string(::Core::PathView)> overrideNameCallback,
56 ::Core::ZipUtils::ZipSettings const& zipSettings);
57#endif
58// NOLINTEND
59
60} // namespace Core::ZipUtils
Definition PathView.h:19
Definition UnzipSettings.h:16
Definition ZipProgress.h:7
Definition ZipSettings.h:16