ldas-tools-framecpp 3.0.4
|
Routines related to the gzip compression algorith. More...
Functions | |
void | Compress (const CHAR_U *DataIn, INT_8U NBytesIn, size_t Level, boost::shared_array< CHAR_U > &DataOut, INT_8U &NBytesOut) |
Compress the data with GZip. | |
void | Expand (const CHAR_U *DataIn, INT_8U NBytesIn, boost::shared_array< CHAR_U > &DataOut, INT_8U &NBytesOut) |
Expand the data with GZip. |
Routines related to the gzip compression algorith.
The routines defined in this namespace are specific to the GZip compression algorithm. Routines are defined for both compression and decompression of data buffers.
void FrameCPP::Compression::GZip::Compress | ( | const CHAR_U * | DataIn, |
INT_8U | NBytesIn, | ||
size_t | Level, | ||
boost::shared_array< CHAR_U > & | DataOut, | ||
INT_8U & | NBytesOut ) |
Compress the data with GZip.
[in] | DataIn | Pointer to the data to be compressed |
[in] | NBytesIn | The number of bytes to be compressed. Upon return, the size of the compressed buffer is returned. |
[in] | Level | Compression level. |
[out] | DataOut | Pointer to the data to be compressed |
[out] | NBytesOut | The number of bytes to be compressed. Upon return, the size of the compressed buffer is returned. |
The data must be in an uncompressed state before this is called.
[in] | DataIn | Pointer to the data to be compressed |
[in] | NBytesIn | The number of bytes to be compressed. Upon return, the size of the compressed buffer is returned. |
[in] | Level | Compression level. |
[out] | DataOut | Pointer to the data to be compressed |
[out] | NBytesOut | The number of bytes to be compressed. Upon return, the size of the compressed buffer is returned. |
void FrameCPP::Compression::GZip::Expand | ( | const CHAR_U * | DataIn, |
INT_8U | NBytesIn, | ||
boost::shared_array< CHAR_U > & | DataOut, | ||
INT_8U & | NBytesOut ) |
Expand the data with GZip.
[in] | DataIn | |
[in] | NBytesIn | |
[out] | DataOut | |
[in,out] | NBytesOut | On input, this must be set to the expected number of bytes for the expanded buffer. On output, this will have the number of bytes in the DataOut buffer. |
This will uncompress the data using the appropriate GZip call.