MeshLib C Docs
Loading...
Searching...
No Matches
MRZip.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
13typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
14typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
15typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
16typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
17
18
22
32MRC_API MR_expected_void_std_string *MR_decompressZip_std_filesystem_path(const char *zipFile, const char *zipFile_end, const char *targetFolder, const char *targetFolder_end, const char *password);
33
43MRC_API MR_expected_void_std_string *MR_decompressZip_std_istream(MR_std_istream *zipStream, const char *targetFolder, const char *targetFolder_end, const char *password);
44
51
58
65
73
80
88
95
103MRC_API void MR_CompressZipSettings_Set_password(MR_CompressZipSettings *_this, const char *value, const char *value_end);
104
111
118
125
132
136
141
150MRC_API MR_CompressZipSettings *MR_CompressZipSettings_ConstructFrom(MR_PassBy excludeFiles_pass_by, MR_std_vector_std_filesystem_path *excludeFiles, int compressionLevel, const char *password, const char *password_end, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb);
151
155
159
164
167
170
177
187MRC_API MR_expected_void_std_string *MR_compressZip_3(const char *zipFile, const char *zipFile_end, const char *sourceFolder, const char *sourceFolder_end, const MR_CompressZipSettings *settings);
188
202MRC_DEPRECATED_REASON("Use compressZip( zipFile, sourceFolder, settings )")
203MRC_API MR_expected_void_std_string *MR_compressZip_5(const char *zipFile, const char *zipFile_end, const char *sourceFolder, const char *sourceFolder_end, const MR_std_vector_std_filesystem_path *excludeFiles, const char *password, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb);
204
205#ifdef __cplusplus
206} // extern "C"
207#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:26
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_std_istream MR_std_istream
A C++ input stream.
Definition MRCtm.h:28
struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
Definition MRSceneLoad.h:20
MRC_API MR_expected_void_std_string * MR_decompressZip_std_istream(MR_std_istream *zipStream, const char *targetFolder, const char *targetFolder_end, const char *password)
decompresses given binary stream (containing the data of a zip file only) into given folder
MRC_API void MR_CompressZipSettings_Set_password(MR_CompressZipSettings *_this, const char *value, const char *value_end)
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_ConstructFrom(MR_PassBy excludeFiles_pass_by, MR_std_vector_std_filesystem_path *excludeFiles, int compressionLevel, const char *password, const char *password_end, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
MRC_API MR_expected_void_std_string * MR_decompressZip_std_filesystem_path(const char *zipFile, const char *zipFile_end, const char *targetFolder, const char *targetFolder_end, const char *password)
decompresses given zip-file into given folder
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_DefaultConstructArray(size_t num_elems)
MRC_API const int * MR_CompressZipSettings_Get_compressionLevel(const MR_CompressZipSettings *_this)
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_AssignFromAnother(MR_CompressZipSettings *_this, MR_PassBy _other_pass_by, MR_CompressZipSettings *_other)
MRC_API void MR_CompressZipSettings_Set_compressionLevel(MR_CompressZipSettings *_this, int value)
struct MR_CompressZipSettings MR_CompressZipSettings
Definition MRZip.h:21
MRC_API MR_expected_void_std_string * MR_compressZip_3(const char *zipFile, const char *zipFile_end, const char *sourceFolder, const char *sourceFolder_end, const MR_CompressZipSettings *settings)
compresses given folder in given zip-file
MRC_API MR_expected_void_std_string * MR_compressZip_5(const char *zipFile, const char *zipFile_end, const char *sourceFolder, const char *sourceFolder_end, const MR_std_vector_std_filesystem_path *excludeFiles, const char *password, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
compresses given folder in given zip-file
MRC_API MR_std_string * MR_CompressZipSettings_GetMutable_password(MR_CompressZipSettings *_this)
MRC_API void MR_CompressZipSettings_Set_cb(MR_CompressZipSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_std_vector_std_filesystem_path * MR_CompressZipSettings_GetMutable_excludeFiles(MR_CompressZipSettings *_this)
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_OffsetMutablePtr(MR_CompressZipSettings *ptr, ptrdiff_t i)
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_CompressZipSettings *_other)
MRC_API const MR_std_function_bool_from_float * MR_CompressZipSettings_Get_cb(const MR_CompressZipSettings *_this)
MRC_API void MR_CompressZipSettings_DestroyArray(const MR_CompressZipSettings *_this)
Destroys a heap-allocated array of MR_CompressZipSettings. Does nothing if the pointer is null.
MRC_API int * MR_CompressZipSettings_GetMutable_compressionLevel(MR_CompressZipSettings *_this)
MRC_API const MR_CompressZipSettings * MR_CompressZipSettings_OffsetPtr(const MR_CompressZipSettings *ptr, ptrdiff_t i)
MRC_API MR_std_function_bool_from_float * MR_CompressZipSettings_GetMutable_cb(MR_CompressZipSettings *_this)
MRC_API const MR_std_string * MR_CompressZipSettings_Get_password(const MR_CompressZipSettings *_this)
MRC_API const MR_std_vector_std_filesystem_path * MR_CompressZipSettings_Get_excludeFiles(const MR_CompressZipSettings *_this)
MRC_API void MR_CompressZipSettings_Set_excludeFiles(MR_CompressZipSettings *_this, MR_PassBy value_pass_by, MR_std_vector_std_filesystem_path *value)
MRC_API void MR_CompressZipSettings_Destroy(const MR_CompressZipSettings *_this)
Destroys a heap-allocated instance of MR_CompressZipSettings. Does nothing if the pointer is null.
MRC_API MR_CompressZipSettings * MR_CompressZipSettings_DefaultConstruct(void)
#define MRC_DEPRECATED_REASON(str)
Definition common.h:84
MR_PassBy
Definition common.h:23
#define MRC_API
Definition include/MRCMisc/exports.h:11