MeshLib C Docs
Loading...
Searching...
No Matches
MRZip.h File Reference
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>

Go to the source code of this file.

Typedefs

typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_istream MR_std_istream
 
typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
 

Functions

MRC_API MR_expected_void_std_stringMR_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_expected_void_std_stringMR_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 MR_expected_void_std_stringMR_compressZip (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
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_std_function_bool_from_float

◆ MR_std_istream

◆ MR_std_vector_std_filesystem_path

Function Documentation

◆ MR_compressZip()

MRC_API MR_expected_void_std_string * MR_compressZip ( 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

Parameters
excludeFilesfiles that should not be included to result zip
passwordif password is given then the archive will be encrypted
cban option to get progress notifications and cancel the operation Generated from function MR::compressZip. Parameter zipFile is a UTF-8 encoded filesystem path. Parameter sourceFolder is a UTF-8 encoded filesystem path. Parameter excludeFiles is a single object. Parameter excludeFiles has a default argument: {}, pass a null pointer to use it. Parameter password defaults to a null pointer in C++. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_decompressZip_std_filesystem_path()

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

Parameters
passwordif password is given then it will be used to decipher encrypted archive Generated from function MR::decompressZip. Parameter zipFile is a UTF-8 encoded filesystem path. Parameter targetFolder is a UTF-8 encoded filesystem path. Parameter password defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_decompressZip_std_istream()

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

Parameters
passwordif password is given then it will be used to decipher encrypted archive Generated from function MR::decompressZip. Parameter zipStream can not be null. It is a single object. Parameter targetFolder is a UTF-8 encoded filesystem path. Parameter password defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.