MeshLib C Docs
Loading...
Searching...
No Matches
MRZlib.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 <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
14typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
15typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
16
17
25
31
39
48
56
65
69
74
79
83
87
93
96
99
107
114
121
128
135
142
149
156
163
170
174
179
186MRC_API MR_ZlibCompressStats *MR_ZlibCompressStats_ConstructFrom(unsigned int crc32, MR_uint64_t uncompressedSize, MR_uint64_t compressedSize);
187
191
195
201
204
207
215
223
230
238
246
254
262
271
279
288
292
297
301
305
310
314
320
325
331
334
337
345
359
371
385
395
396#ifdef __cplusplus
397} // extern "C"
398#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 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 const MR_uint64_t * MR_ZlibCompressStats_Get_compressedSize(const MR_ZlibCompressStats *_this)
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 MR_ZlibCompressStats * MR_ZlibCompressStats_ConstructFrom(unsigned int crc32, MR_uint64_t uncompressedSize, MR_uint64_t compressedSize)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_ConstructFromAnother(const MR_ZlibCompressParams *_other)
MRC_API void MR_ZlibCompressStats_Set_uncompressedSize(MR_ZlibCompressStats *_this, MR_uint64_t value)
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:24
MRC_API MR_ZlibCompressStats ** MR_ZlibCompressParams_GetMutable_stats(MR_ZlibCompressParams *_this)
struct MR_ZlibCompressStats MR_ZlibCompressStats
Definition MRZlib.h:30
MRC_API MR_uint64_t * MR_ZlibCompressStats_GetMutable_uncompressedSize(MR_ZlibCompressStats *_this)
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_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 void MR_ZlibCompressStats_Set_compressedSize(MR_ZlibCompressStats *_this, MR_uint64_t value)
MRC_API const unsigned int * MR_ZlibCompressStats_Get_crc32(const MR_ZlibCompressStats *_this)
MRC_API MR_uint64_t * MR_ZlibCompressStats_GetMutable_compressedSize(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 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:38
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 const MR_uint64_t * MR_ZlibCompressStats_Get_uncompressedSize(const MR_ZlibCompressStats *_this)
MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_DefaultConstruct(void)
MRC_API void MR_ZlibCompressParams_Set_rawDeflate(MR_ZlibCompressParams *_this, bool 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)
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition include/MRCMisc/exports.h:11