MeshLib C Docs
Loading...
Searching...
No Matches
MRZlib.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdbool.h>
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_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
14typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
15
16
24
30
38
47
55
64
68
73
78
82
86
92
95
98
106
113
120
127
134
141
148
155
162
169
173
178
185MRC_API MR_ZlibCompressStats *MR_ZlibCompressStats_ConstructFrom(unsigned int crc32, size_t uncompressedSize, size_t compressedSize);
186
190
194
200
203
206
214
222
229
237
245
253
261
270
278
287
291
296
300
304
309
313
319
324
330
333
336
344
358
370
384
394
395#ifdef __cplusplus
396} // extern "C"
397#endif
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:26
struct MR_std_ostream MR_std_ostream
A C++ output stream.
Definition MRCtm.h:31
struct MR_std_istream MR_std_istream
A C++ input stream.
Definition MRCtm.h:28
MRC_API const size_t * MR_ZlibCompressStats_Get_compressedSize(const MR_ZlibCompressStats *_this)
MRC_API void MR_ZlibParams_Set_rawDeflate(MR_ZlibParams *_this, bool value)
MRC_API void MR_ZlibParams_DestroyArray(const MR_ZlibParams *_this)
Destroys a heap-allocated array of MR_ZlibParams. Does nothing if the pointer is null.
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_OffsetMutablePtr(MR_ZlibCompressParams *ptr, ptrdiff_t i)
MRC_API void MR_ZlibCompressParams_Set_level(MR_ZlibCompressParams *_this, int value)
MRC_API int * MR_ZlibCompressParams_GetMutable_level(MR_ZlibCompressParams *_this)
MRC_API void MR_ZlibCompressParams_Destroy(const MR_ZlibCompressParams *_this)
Destroys a heap-allocated instance of MR_ZlibCompressParams. Does nothing if the pointer is null.
MRC_API MR_ZlibParams * MR_ZlibParams_AssignFromAnother(MR_ZlibParams *_this, const MR_ZlibParams *_other)
MRC_API const MR_ZlibCompressStats * MR_ZlibCompressStats_OffsetPtr(const MR_ZlibCompressStats *ptr, ptrdiff_t i)
MRC_API MR_ZlibParams * MR_ZlibParams_OffsetMutablePtr(MR_ZlibParams *ptr, ptrdiff_t i)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_DefaultConstructArray(size_t num_elems)
MRC_API MR_expected_void_std_string * MR_zlibCompressStream_int(MR_std_istream *in, MR_std_ostream *out, const int *level)
compress the input data using the Deflate algorithm (zlib-wrapped, RFC 1950)
MRC_API void MR_ZlibCompressParams_Set_stats(MR_ZlibCompressParams *_this, MR_ZlibCompressStats *value)
MRC_API size_t * MR_ZlibCompressStats_GetMutable_uncompressedSize(MR_ZlibCompressStats *_this)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_ConstructFromAnother(const MR_ZlibCompressParams *_other)
MRC_API void MR_ZlibCompressStats_DestroyArray(const MR_ZlibCompressStats *_this)
Destroys a heap-allocated array of MR_ZlibCompressStats. Does nothing if the pointer is null.
struct MR_ZlibParams MR_ZlibParams
Definition MRZlib.h:23
MRC_API MR_ZlibCompressStats ** MR_ZlibCompressParams_GetMutable_stats(MR_ZlibCompressParams *_this)
MRC_API const size_t * MR_ZlibCompressStats_Get_uncompressedSize(const MR_ZlibCompressStats *_this)
struct MR_ZlibCompressStats MR_ZlibCompressStats
Definition MRZlib.h:29
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_AssignFromAnother(MR_ZlibCompressStats *_this, const MR_ZlibCompressStats *_other)
MRC_API MR_expected_void_std_string * MR_zlibDecompressStream_2(MR_std_istream *in, MR_std_ostream *out)
decompress the input data compressed with the Deflate algorithm (zlib-wrapped, RFC 1950)
MRC_API void MR_ZlibCompressStats_Set_compressedSize(MR_ZlibCompressStats *_this, size_t value)
MRC_API void MR_ZlibCompressStats_Set_crc32(MR_ZlibCompressStats *_this, unsigned int value)
MRC_API MR_expected_void_std_string * MR_zlibDecompressStream_3(MR_std_istream *in, MR_std_ostream *out, const MR_ZlibParams *params)
decompress the input data compressed with the Deflate algorithm
MRC_API const bool * MR_ZlibCompressParams_Get_rawDeflate(const MR_ZlibCompressParams *_this)
MRC_API MR_ZlibParams * MR_ZlibParams_ConstructFromAnother(const MR_ZlibParams *_other)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_MutableStaticDowncastFrom_MR_ZlibParams(MR_ZlibParams *object)
MRC_API const unsigned int * MR_ZlibCompressStats_Get_crc32(const MR_ZlibCompressStats *_this)
MRC_API MR_ZlibCompressStats *const * MR_ZlibCompressParams_Get_stats(const MR_ZlibCompressParams *_this)
MRC_API const bool * MR_ZlibParams_Get_rawDeflate(const MR_ZlibParams *_this)
MRC_API bool * MR_ZlibCompressParams_GetMutable_rawDeflate(MR_ZlibCompressParams *_this)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_ConstructFrom(unsigned int crc32, size_t uncompressedSize, size_t compressedSize)
MRC_API size_t * MR_ZlibCompressStats_GetMutable_compressedSize(MR_ZlibCompressStats *_this)
MRC_API bool * MR_ZlibParams_GetMutable_rawDeflate(MR_ZlibParams *_this)
MRC_API MR_ZlibParams * MR_ZlibCompressParams_MutableUpcastTo_MR_ZlibParams(MR_ZlibCompressParams *object)
MRC_API const MR_ZlibCompressParams * MR_ZlibCompressParams_OffsetPtr(const MR_ZlibCompressParams *ptr, ptrdiff_t i)
MRC_API void MR_ZlibCompressParams_DestroyArray(const MR_ZlibCompressParams *_this)
Destroys a heap-allocated array of MR_ZlibCompressParams. Does nothing if the pointer is null.
struct MR_ZlibCompressParams MR_ZlibCompressParams
Definition MRZlib.h:37
MRC_API void MR_ZlibCompressStats_Destroy(const MR_ZlibCompressStats *_this)
Destroys a heap-allocated instance of MR_ZlibCompressStats. Does nothing if the pointer is null.
MRC_API const MR_ZlibParams * MR_ZlibParams_OffsetPtr(const MR_ZlibParams *ptr, ptrdiff_t i)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_DefaultConstruct(void)
MRC_API void MR_ZlibCompressParams_Set_rawDeflate(MR_ZlibCompressParams *_this, bool value)
MRC_API void MR_ZlibCompressStats_Set_uncompressedSize(MR_ZlibCompressStats *_this, size_t value)
MRC_API MR_ZlibParams * MR_ZlibParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_expected_void_std_string * MR_zlibCompressStream_MR_ZlibCompressParams(MR_std_istream *in, MR_std_ostream *out, const MR_ZlibCompressParams *params)
compress the input data using the Deflate algorithm
MRC_API const MR_ZlibCompressParams * MR_ZlibCompressParams_StaticDowncastFrom_MR_ZlibParams(const MR_ZlibParams *object)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_OffsetMutablePtr(MR_ZlibCompressStats *ptr, ptrdiff_t i)
MRC_API void MR_ZlibParams_Destroy(const MR_ZlibParams *_this)
Destroys a heap-allocated instance of MR_ZlibParams. Does nothing if the pointer is null.
MRC_API MR_ZlibParams * MR_ZlibParams_ConstructFrom(bool rawDeflate)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_AssignFromAnother(MR_ZlibCompressParams *_this, const MR_ZlibCompressParams *_other)
MRC_API const MR_ZlibParams * MR_ZlibCompressParams_UpcastTo_MR_ZlibParams(const MR_ZlibCompressParams *object)
MRC_API const int * MR_ZlibCompressParams_Get_level(const MR_ZlibCompressParams *_this)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_ConstructFromAnother(const MR_ZlibCompressStats *_other)
MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_DefaultConstruct(void)
MRC_API MR_ZlibParams * MR_ZlibParams_DefaultConstruct(void)
MRC_API unsigned int * MR_ZlibCompressStats_GetMutable_crc32(MR_ZlibCompressStats *_this)
#define MRC_API
Definition include/MRCMisc/exports.h:11