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

Go to the source code of this file.

Typedefs

typedef struct MR_ZlibParams MR_ZlibParams
typedef struct MR_ZlibCompressStats MR_ZlibCompressStats
typedef struct MR_ZlibCompressParams MR_ZlibCompressParams

Functions

MRC_API const bool * MR_ZlibParams_Get_rawDeflate (const MR_ZlibParams *_this)
MRC_API void MR_ZlibParams_Set_rawDeflate (MR_ZlibParams *_this, bool value)
MRC_API bool * MR_ZlibParams_GetMutable_rawDeflate (MR_ZlibParams *_this)
MRC_API MR_ZlibParamsMR_ZlibParams_DefaultConstruct (void)
MRC_API MR_ZlibParamsMR_ZlibParams_DefaultConstructArray (size_t num_elems)
MRC_API MR_ZlibParamsMR_ZlibParams_ConstructFrom (bool rawDeflate)
MRC_API const MR_ZlibParamsMR_ZlibParams_OffsetPtr (const MR_ZlibParams *ptr, ptrdiff_t i)
MRC_API MR_ZlibParamsMR_ZlibParams_OffsetMutablePtr (MR_ZlibParams *ptr, ptrdiff_t i)
MRC_API MR_ZlibParamsMR_ZlibParams_ConstructFromAnother (const MR_ZlibParams *_other)
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 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_ZlibParamsMR_ZlibParams_AssignFromAnother (MR_ZlibParams *_this, const MR_ZlibParams *_other)
MRC_API const unsigned int * MR_ZlibCompressStats_Get_crc32 (const MR_ZlibCompressStats *_this)
MRC_API void MR_ZlibCompressStats_Set_crc32 (MR_ZlibCompressStats *_this, unsigned int value)
MRC_API unsigned int * MR_ZlibCompressStats_GetMutable_crc32 (MR_ZlibCompressStats *_this)
MRC_API const MR_uint64_tMR_ZlibCompressStats_Get_uncompressedSize (const MR_ZlibCompressStats *_this)
MRC_API void MR_ZlibCompressStats_Set_uncompressedSize (MR_ZlibCompressStats *_this, MR_uint64_t value)
MRC_API MR_uint64_tMR_ZlibCompressStats_GetMutable_uncompressedSize (MR_ZlibCompressStats *_this)
MRC_API const MR_uint64_tMR_ZlibCompressStats_Get_compressedSize (const MR_ZlibCompressStats *_this)
MRC_API void MR_ZlibCompressStats_Set_compressedSize (MR_ZlibCompressStats *_this, MR_uint64_t value)
MRC_API MR_uint64_tMR_ZlibCompressStats_GetMutable_compressedSize (MR_ZlibCompressStats *_this)
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_DefaultConstruct (void)
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_DefaultConstructArray (size_t num_elems)
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_ConstructFrom (unsigned int crc32, MR_uint64_t uncompressedSize, MR_uint64_t compressedSize)
MRC_API const MR_ZlibCompressStatsMR_ZlibCompressStats_OffsetPtr (const MR_ZlibCompressStats *ptr, ptrdiff_t i)
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_OffsetMutablePtr (MR_ZlibCompressStats *ptr, ptrdiff_t i)
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_ConstructFromAnother (const MR_ZlibCompressStats *_other)
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 void MR_ZlibCompressStats_DestroyArray (const MR_ZlibCompressStats *_this)
 Destroys a heap-allocated array of MR_ZlibCompressStats. Does nothing if the pointer is null.
MRC_API MR_ZlibCompressStatsMR_ZlibCompressStats_AssignFromAnother (MR_ZlibCompressStats *_this, const MR_ZlibCompressStats *_other)
MRC_API const int * MR_ZlibCompressParams_Get_level (const MR_ZlibCompressParams *_this)
MRC_API void MR_ZlibCompressParams_Set_level (MR_ZlibCompressParams *_this, int value)
MRC_API int * MR_ZlibCompressParams_GetMutable_level (MR_ZlibCompressParams *_this)
MRC_API MR_ZlibCompressStats *const * MR_ZlibCompressParams_Get_stats (const MR_ZlibCompressParams *_this)
MRC_API void MR_ZlibCompressParams_Set_stats (MR_ZlibCompressParams *_this, MR_ZlibCompressStats *value)
MRC_API MR_ZlibCompressStats ** MR_ZlibCompressParams_GetMutable_stats (MR_ZlibCompressParams *_this)
MRC_API const bool * MR_ZlibCompressParams_Get_rawDeflate (const MR_ZlibCompressParams *_this)
MRC_API void MR_ZlibCompressParams_Set_rawDeflate (MR_ZlibCompressParams *_this, bool value)
MRC_API bool * MR_ZlibCompressParams_GetMutable_rawDeflate (MR_ZlibCompressParams *_this)
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_DefaultConstruct (void)
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_DefaultConstructArray (size_t num_elems)
MRC_API const MR_ZlibCompressParamsMR_ZlibCompressParams_OffsetPtr (const MR_ZlibCompressParams *ptr, ptrdiff_t i)
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_OffsetMutablePtr (MR_ZlibCompressParams *ptr, ptrdiff_t i)
MRC_API const MR_ZlibParamsMR_ZlibCompressParams_UpcastTo_MR_ZlibParams (const MR_ZlibCompressParams *object)
MRC_API MR_ZlibParamsMR_ZlibCompressParams_MutableUpcastTo_MR_ZlibParams (MR_ZlibCompressParams *object)
MRC_API const MR_ZlibCompressParamsMR_ZlibCompressParams_StaticDowncastFrom_MR_ZlibParams (const MR_ZlibParams *object)
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_MutableStaticDowncastFrom_MR_ZlibParams (MR_ZlibParams *object)
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_ConstructFromAnother (const MR_ZlibCompressParams *_other)
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 void MR_ZlibCompressParams_DestroyArray (const MR_ZlibCompressParams *_this)
 Destroys a heap-allocated array of MR_ZlibCompressParams. Does nothing if the pointer is null.
MRC_API MR_ZlibCompressParamsMR_ZlibCompressParams_AssignFromAnother (MR_ZlibCompressParams *_this, const MR_ZlibCompressParams *_other)
MRC_API MR_expected_void_std_stringMR_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 MR_expected_void_std_stringMR_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 MR_expected_void_std_stringMR_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 MR_expected_void_std_stringMR_zlibDecompressStream_2 (MR_std_istream *in, MR_std_ostream *out)
 decompress the input data compressed with the Deflate algorithm (zlib-wrapped, RFC 1950)

Typedef Documentation

◆ MR_ZlibCompressParams

parameters for zlibCompressStream (adds a compression level on top of ZlibParams) Generated from class MR::ZlibCompressParams. Base classes: Direct: (non-virtual) MR::ZlibParams Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_ZlibCompressStats

statistics gathered during compression: CRC-32 of the uncompressed input and the total numbers of bytes read from / written to the streams Generated from class MR::ZlibCompressStats. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_ZlibParams

typedef struct MR_ZlibParams MR_ZlibParams

parameters shared by zlibCompressStream and zlibDecompressStream Generated from class MR::ZlibParams. Derived classes: Direct: (non-virtual) MR::ZlibCompressParams Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_ZlibCompressParams_AssignFromAnother()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_AssignFromAnother ( MR_ZlibCompressParams * _this,
const MR_ZlibCompressParams * _other )

Generated from method MR::ZlibCompressParams::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_ZlibCompressParams_ConstructFromAnother()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_ConstructFromAnother ( const MR_ZlibCompressParams * _other)

Generated from constructor MR::ZlibCompressParams::ZlibCompressParams. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibCompressParams_Destroy() to free it when you're done using it.

◆ MR_ZlibCompressParams_DefaultConstruct()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibCompressParams_Destroy() to free it when you're done using it.

◆ MR_ZlibCompressParams_DefaultConstructArray()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_ZlibCompressParams_DestroyArray(). Use MR_ZlibCompressParams_OffsetMutablePtr() and MR_ZlibCompressParams_OffsetPtr() to access the array elements.

◆ MR_ZlibCompressParams_Destroy()

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.

◆ MR_ZlibCompressParams_DestroyArray()

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.

◆ MR_ZlibCompressParams_Get_level()

MRC_API const int * MR_ZlibCompressParams_Get_level ( const MR_ZlibCompressParams * _this)

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Returns a pointer to a member variable of class MR::ZlibCompressParams named level. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_Get_rawDeflate()

MRC_API const bool * MR_ZlibCompressParams_Get_rawDeflate ( const MR_ZlibCompressParams * _this)

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a pointer to a member variable of class MR::ZlibCompressParams named rawDeflate. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_Get_stats()

MRC_API MR_ZlibCompressStats *const * MR_ZlibCompressParams_Get_stats ( const MR_ZlibCompressParams * _this)

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Returns a pointer to a member variable of class MR::ZlibCompressParams named stats. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_GetMutable_level()

MRC_API int * MR_ZlibCompressParams_GetMutable_level ( MR_ZlibCompressParams * _this)

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named level. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_GetMutable_rawDeflate()

MRC_API bool * MR_ZlibCompressParams_GetMutable_rawDeflate ( MR_ZlibCompressParams * _this)

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named rawDeflate. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_GetMutable_stats()

MRC_API MR_ZlibCompressStats ** MR_ZlibCompressParams_GetMutable_stats ( MR_ZlibCompressParams * _this)

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named stats. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressParams_MutableStaticDowncastFrom_MR_ZlibParams()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_MutableStaticDowncastFrom_MR_ZlibParams ( MR_ZlibParams * object)

Downcasts an instance of MR::ZlibParams to a derived class MR::ZlibCompressParams. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.

◆ MR_ZlibCompressParams_MutableUpcastTo_MR_ZlibParams()

MRC_API MR_ZlibParams * MR_ZlibCompressParams_MutableUpcastTo_MR_ZlibParams ( MR_ZlibCompressParams * object)

Upcasts an instance of MR::ZlibCompressParams to its base class MR::ZlibParams. The reference to the parameter object might be preserved in the return value.

◆ MR_ZlibCompressParams_OffsetMutablePtr()

MRC_API MR_ZlibCompressParams * MR_ZlibCompressParams_OffsetMutablePtr ( MR_ZlibCompressParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibCompressParams_OffsetPtr()

MRC_API const MR_ZlibCompressParams * MR_ZlibCompressParams_OffsetPtr ( const MR_ZlibCompressParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibCompressParams_Set_level()

MRC_API void MR_ZlibCompressParams_Set_level ( MR_ZlibCompressParams * _this,
int value )

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Modifies a member variable of class MR::ZlibCompressParams named level. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in level.

◆ MR_ZlibCompressParams_Set_rawDeflate()

MRC_API void MR_ZlibCompressParams_Set_rawDeflate ( MR_ZlibCompressParams * _this,
bool value )

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Modifies a member variable of class MR::ZlibCompressParams named rawDeflate. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in rawDeflate.

◆ MR_ZlibCompressParams_Set_stats()

MRC_API void MR_ZlibCompressParams_Set_stats ( MR_ZlibCompressParams * _this,
MR_ZlibCompressStats * value )

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Modifies a member variable of class MR::ZlibCompressParams named stats. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element stats. When this function is called, this object will drop object references it held previously in stats.

◆ MR_ZlibCompressParams_StaticDowncastFrom_MR_ZlibParams()

MRC_API const MR_ZlibCompressParams * MR_ZlibCompressParams_StaticDowncastFrom_MR_ZlibParams ( const MR_ZlibParams * object)

Downcasts an instance of MR::ZlibParams to a derived class MR::ZlibCompressParams. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.

◆ MR_ZlibCompressParams_UpcastTo_MR_ZlibParams()

MRC_API const MR_ZlibParams * MR_ZlibCompressParams_UpcastTo_MR_ZlibParams ( const MR_ZlibCompressParams * object)

Upcasts an instance of MR::ZlibCompressParams to its base class MR::ZlibParams. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.

◆ MR_ZlibCompressStats_AssignFromAnother()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_AssignFromAnother ( MR_ZlibCompressStats * _this,
const MR_ZlibCompressStats * _other )

Generated from method MR::ZlibCompressStats::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_ZlibCompressStats_ConstructFrom()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_ConstructFrom ( unsigned int crc32,
MR_uint64_t uncompressedSize,
MR_uint64_t compressedSize )

Constructs MR::ZlibCompressStats elementwise. The reference to the parameter crc32 might be preserved in the constructed object. The reference to the parameter uncompressedSize might be preserved in the constructed object. The reference to the parameter compressedSize might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibCompressStats_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_ZlibCompressStats_ConstructFromAnother()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_ConstructFromAnother ( const MR_ZlibCompressStats * _other)

Generated from constructor MR::ZlibCompressStats::ZlibCompressStats. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibCompressStats_Destroy() to free it when you're done using it.

◆ MR_ZlibCompressStats_DefaultConstruct()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibCompressStats_Destroy() to free it when you're done using it.

◆ MR_ZlibCompressStats_DefaultConstructArray()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_ZlibCompressStats_DestroyArray(). Use MR_ZlibCompressStats_OffsetMutablePtr() and MR_ZlibCompressStats_OffsetPtr() to access the array elements.

◆ MR_ZlibCompressStats_Destroy()

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.

◆ MR_ZlibCompressStats_DestroyArray()

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.

◆ MR_ZlibCompressStats_Get_compressedSize()

MRC_API const MR_uint64_t * MR_ZlibCompressStats_Get_compressedSize ( const MR_ZlibCompressStats * _this)

total bytes written to the output stream Modifies a member variable of class MR::ZlibCompressStats named compressedSize. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element compressedSize. When this function is called, this object will drop object references it held previously in compressedSize.

◆ MR_ZlibCompressStats_Get_crc32()

MRC_API const unsigned int * MR_ZlibCompressStats_Get_crc32 ( const MR_ZlibCompressStats * _this)

CRC-32 of the uncompressed input Modifies a member variable of class MR::ZlibCompressStats named crc32. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element crc32. When this function is called, this object will drop object references it held previously in crc32.

◆ MR_ZlibCompressStats_Get_uncompressedSize()

MRC_API const MR_uint64_t * MR_ZlibCompressStats_Get_uncompressedSize ( const MR_ZlibCompressStats * _this)

total bytes read from the input stream Modifies a member variable of class MR::ZlibCompressStats named uncompressedSize. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element uncompressedSize. When this function is called, this object will drop object references it held previously in uncompressedSize.

◆ MR_ZlibCompressStats_GetMutable_compressedSize()

MRC_API MR_uint64_t * MR_ZlibCompressStats_GetMutable_compressedSize ( MR_ZlibCompressStats * _this)

◆ MR_ZlibCompressStats_GetMutable_crc32()

MRC_API unsigned int * MR_ZlibCompressStats_GetMutable_crc32 ( MR_ZlibCompressStats * _this)

total bytes read from the input stream Returns a pointer to a member variable of class MR::ZlibCompressStats named uncompressedSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressStats_GetMutable_uncompressedSize()

MRC_API MR_uint64_t * MR_ZlibCompressStats_GetMutable_uncompressedSize ( MR_ZlibCompressStats * _this)

total bytes written to the output stream Returns a pointer to a member variable of class MR::ZlibCompressStats named compressedSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressStats_OffsetMutablePtr()

MRC_API MR_ZlibCompressStats * MR_ZlibCompressStats_OffsetMutablePtr ( MR_ZlibCompressStats * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibCompressStats_OffsetPtr()

MRC_API const MR_ZlibCompressStats * MR_ZlibCompressStats_OffsetPtr ( const MR_ZlibCompressStats * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibCompressStats_Set_compressedSize()

MRC_API void MR_ZlibCompressStats_Set_compressedSize ( MR_ZlibCompressStats * _this,
MR_uint64_t value )

total bytes written to the output stream Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named compressedSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressStats_Set_crc32()

MRC_API void MR_ZlibCompressStats_Set_crc32 ( MR_ZlibCompressStats * _this,
unsigned int value )

CRC-32 of the uncompressed input Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named crc32. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibCompressStats_Set_uncompressedSize()

MRC_API void MR_ZlibCompressStats_Set_uncompressedSize ( MR_ZlibCompressStats * _this,
MR_uint64_t value )

total bytes read from the input stream Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named uncompressedSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_zlibCompressStream_int()

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)

Note
convenience overload; equivalent to zlibCompressStream(in, out, { .level = level })
Parameters
level- compression level (see ZlibCompressParams::level) Generated from function MR::zlibCompressStream. Parameter in can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter level has a default argument: -1, pass 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_zlibCompressStream_MR_ZlibCompressParams()

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

Parameters
in- input data stream
out- output data stream
params- compression parameters (wire format, level)
Returns
nothing or error string Generated from function MR::zlibCompressStream. Parameter in can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter params can not be null. It is a single object. 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_zlibDecompressStream_2()

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)

Note
convenience overload; equivalent to zlibDecompressStream(in, out, {}) Generated from function MR::zlibDecompressStream. Parameter in can not be null. It is a single object. Parameter out can not be null. It is a single object. 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_zlibDecompressStream_3()

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

Parameters
in- input data stream
out- output data stream
params- decompression parameters (wire format)
Returns
nothing or error string Generated from function MR::zlibDecompressStream. Parameter in can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter params can not be null. It is a single object. 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_ZlibParams_AssignFromAnother()

MRC_API MR_ZlibParams * MR_ZlibParams_AssignFromAnother ( MR_ZlibParams * _this,
const MR_ZlibParams * _other )

Generated from method MR::ZlibParams::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously. CRC-32 of the uncompressed input Returns a pointer to a member variable of class MR::ZlibCompressStats named crc32. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibParams_ConstructFrom()

MRC_API MR_ZlibParams * MR_ZlibParams_ConstructFrom ( bool rawDeflate)

Constructs MR::ZlibParams elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibParams_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_ZlibParams_ConstructFromAnother()

MRC_API MR_ZlibParams * MR_ZlibParams_ConstructFromAnother ( const MR_ZlibParams * _other)

Generated from constructor MR::ZlibParams::ZlibParams. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibParams_Destroy() to free it when you're done using it.

◆ MR_ZlibParams_DefaultConstruct()

MRC_API MR_ZlibParams * MR_ZlibParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_ZlibParams_Destroy() to free it when you're done using it.

◆ MR_ZlibParams_DefaultConstructArray()

MRC_API MR_ZlibParams * MR_ZlibParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_ZlibParams_DestroyArray(). Use MR_ZlibParams_OffsetMutablePtr() and MR_ZlibParams_OffsetPtr() to access the array elements.

◆ MR_ZlibParams_Destroy()

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.

◆ MR_ZlibParams_DestroyArray()

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.

◆ MR_ZlibParams_Get_rawDeflate()

MRC_API const bool * MR_ZlibParams_Get_rawDeflate ( const MR_ZlibParams * _this)

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a pointer to a member variable of class MR::ZlibParams named rawDeflate. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibParams_GetMutable_rawDeflate()

MRC_API bool * MR_ZlibParams_GetMutable_rawDeflate ( MR_ZlibParams * _this)

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a mutable pointer to a member variable of class MR::ZlibParams named rawDeflate. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_ZlibParams_OffsetMutablePtr()

MRC_API MR_ZlibParams * MR_ZlibParams_OffsetMutablePtr ( MR_ZlibParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibParams_OffsetPtr()

MRC_API const MR_ZlibParams * MR_ZlibParams_OffsetPtr ( const MR_ZlibParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ZlibParams_Set_rawDeflate()

MRC_API void MR_ZlibParams_Set_rawDeflate ( MR_ZlibParams * _this,
bool value )

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Modifies a member variable of class MR::ZlibParams named rawDeflate. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in rawDeflate.