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/UnzipResult.h"
8#include "mc/deps/core/file/ZipResult.h"
9#include "mc/deps/core/string/BasicStackString.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Core { class Path; }
14namespace Core { class Result; }
15namespace Core::ZipUtils { class UnzipSettings; }
16namespace Core::ZipUtils { class ZipProgress; }
17namespace Core::ZipUtils { class ZipSettings; }
18// clang-format on
19
20namespace Core::ZipUtils {
21// functions
22// NOLINTBEGIN
23MCNAPI ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> _zipEncodedPathToUTF8(::Core::Path const& path);
24
25MCNAPI bool exists(
26 ::Core::Path const& zipPath,
27 ::Core::Path const& relativePath,
28 ::Core::ZipUtils::UnzipSettings const& unzipSettings
29);
30
31MCNAPI bool getFilenames(
32 ::Core::Path const& zipPath,
33 ::std::vector<::Core::PathBuffer<::std::string>>& result,
34 ::Core::ZipUtils::UnzipSettings const& unzipSettings
35);
36
37MCNAPI ::Core::ZipUtils::UnzipResult getTranslatedUnzipResult(int inputResult);
38
39MCNAPI ::Core::ZipUtils::ZipResult getTranslatedZipResult(int inputResult);
40
41MCNAPI ::Core::ZipUtils::UnzipResult unzipInTransaction(
42 ::Core::Path const& zipInputPath,
43 ::Core::Path const& outputFolderPath,
45 bool useLowMemMode,
46 ::Core::ZipUtils::UnzipSettings const& unzipSettings,
47 ::Core::Result& transactionCommitResult
48);
49
50MCNAPI ::Core::ZipUtils::ZipResult
51zip(::Core::Path const& inputPathIn,
52 ::Core::Path const& zipOutputPath,
54 bool useLowMemMode,
55 ::Core::ZipUtils::ZipSettings const& zipSettings);
56// NOLINTEND
57
58} // namespace Core::ZipUtils
Definition PathBuffer.h:8
Definition Path.h:17
Definition Result.h:13
Definition UnzipSettings.h:7
Definition ZipProgress.h:7
Definition ZipSettings.h:7
Definition Path.h:16
Definition zip.h:5