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_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref MR_std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref; // Defined in `#include <MRCMisc/std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref.h>`.
15typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
16typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
17typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
18
19
23
33MRC_API MR_expected_void_std_string *MR_decompressZip_const_std_filesystem_path_ref_std_filesystem_path(const char *zipFile, const char *zipFile_end, const char *targetFolder, const char *targetFolder_end, const char *password);
34
44MRC_API MR_expected_void_std_string *MR_decompressZip_std_istream_ref_std_filesystem_path(MR_std_istream *zipStream, const char *targetFolder, const char *targetFolder_end, const char *password);
45
57
69
76
83
90
98
105
113
120
128MRC_API void MR_CompressZipSettings_Set_password(MR_CompressZipSettings *_this, const char *value, const char *value_end);
129
136
143
150
157
161
166
175MRC_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);
176
180
184
189
192
195
202
212MRC_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);
213
227MRC_DEPRECATED_REASON("Use compressZip( zipFile, sourceFolder, settings )")
228MRC_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);
229
230#ifdef __cplusplus
231} // extern "C"
232#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:27
struct MR_std_string MR_std_string
Definition MRCtm.h:33
struct MR_std_istream MR_std_istream
A C++ input stream.
Definition MRCtm.h:29
struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
Definition MRSceneLoad.h:20
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_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 MR_expected_void_std_string * MR_decompressZip_std_istream_ref_std_function_expected_void_std_string_func_from_const_std_string_ref_std_vector_char_rvalue_ref(MR_std_istream *zipStream, const MR_std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref *callback, const char *password)
decompresses given binary stream (containing the data of a zip file only) and passes every file from ...
MRC_API void MR_CompressZipSettings_Set_compressionLevel(MR_CompressZipSettings *_this, int value)
struct MR_CompressZipSettings MR_CompressZipSettings
Definition MRZip.h:22
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 MR_expected_void_std_string * MR_decompressZip_const_std_filesystem_path_ref_std_function_expected_void_std_string_func_from_const_std_string_ref_std_vector_char_rvalue_ref(const char *zipFile, const char *zipFile_end, const MR_std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref *callback, const char *password)
decompresses given zip-file and passes every file from it to the callback without saving anything on ...
MRC_API int * MR_CompressZipSettings_GetMutable_compressionLevel(MR_CompressZipSettings *_this)
MRC_API MR_expected_void_std_string * MR_decompressZip_std_istream_ref_std_filesystem_path(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 const MR_CompressZipSettings * MR_CompressZipSettings_OffsetPtr(const MR_CompressZipSettings *ptr, ptrdiff_t i)
MRC_API MR_expected_void_std_string * MR_decompressZip_const_std_filesystem_path_ref_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_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)
struct MR_std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref MR_std_function_expected_void_std_string_from_const_std_string_ref_std_vector_char_rvalue_ref
Definition MRZip.h:14
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:74
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11