Compression Functions

Data compression functions. More...

Collaboration diagram for Compression Functions:

Functions

Bool Murl::Util::Compress (const ConstData &uncompressedIn, Data &compressedOut)
 Compress a given data object using ZLib with IEnums::COMPRESSION_LEVEL_DEFAULT. More...
 
Bool Murl::Util::Compress (const ConstData &uncompressedIn, Data &compressedOut, IEnums::CompressionLevel compressionLevel)
 Compress a given data object using ZLib with a specified compression level. More...
 
Bool Murl::Util::Uncompress (const ConstData &compressedIn, Data &uncompressedOut)
 Uncompress a given data object using ZLib. More...
 

Detailed Description

Data compression functions.

Function Documentation

◆ Compress() [1/2]

Bool Murl::Util::Compress ( const ConstData uncompressedIn,
Data compressedOut 
)

Compress a given data object using ZLib with IEnums::COMPRESSION_LEVEL_DEFAULT.

Parameters
uncompressedInThe source data object to compress.
compressedOutA reference to an empty Data object to receive the compressed data.
Returns
true if successful.

◆ Compress() [2/2]

Bool Murl::Util::Compress ( const ConstData uncompressedIn,
Data compressedOut,
IEnums::CompressionLevel  compressionLevel 
)

Compress a given data object using ZLib with a specified compression level.

Parameters
uncompressedInThe source data object to compress.
compressedOutA reference to an empty Data object to receive the compressed data.
compressionLevelThe compression level.
Returns
true if successful.

◆ Uncompress()

Bool Murl::Util::Uncompress ( const ConstData compressedIn,
Data uncompressedOut 
)

Uncompress a given data object using ZLib.

Parameters
compressedInThe source data object to decompress.
uncompressedOutA reference to an empty Data object to receive the uncompressed data.
Returns
true if successful.


Copyright © 2011-2024 Spraylight GmbH.