MRPT logo

zip.h File Reference

#include <mrpt/utils/utils_defs.h>

Go to the source code of this file.


Namespaces

namespace  mrpt
 This is the global namespace for all Mobile Robot Porgramming Toolkit (MRPT) libraries.
namespace  mrpt::utils
 Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
namespace  mrpt::compress
 Data compression/decompression algorithms.
namespace  mrpt::compress::zip
 Compression using the "zip" algorithm and from/to gzip (gz) files.

Functions

void MRPTDLLIMPEXP mrpt::compress::zip::compress (void *inData, size_t inDataSize, std::vector< unsigned char > &outData)
 Compress an array of bytes into another one.
void MRPTDLLIMPEXP mrpt::compress::zip::compress (const std::vector< unsigned char > &inData, std::vector< unsigned char > &outData)
 Compress an array of bytes into another one.
void MRPTDLLIMPEXP mrpt::compress::zip::compress (void *inData, size_t inDataSize, CStream &out)
 Compress an array of bytes and write the result into a stream.
void MRPTDLLIMPEXP mrpt::compress::zip::compress (const std::vector< unsigned char > &inData, CStream &out)
 Compress an array of bytes and write the result into a stream.
void MRPTDLLIMPEXP mrpt::compress::zip::decompress (void *inData, size_t inDataSize, std::vector< unsigned char > &outData, size_t outDataEstimatedSize)
 Decompress an array of bytes into another one
Exceptions:
std::exception If the apriori estimated decompressed size is not enought.

void MRPTDLLIMPEXP mrpt::compress::zip::decompress (void *inData, size_t inDataSize, void *outData, size_t outDataBufferSize, size_t &outDataActualSize)
 Decompress an array of bytes into another one
Exceptions:
std::exception If the apriori estimated decompressed size is not enought.

void MRPTDLLIMPEXP mrpt::compress::zip::decompress (CStream &inStream, size_t inDataSize, void *outData, size_t outDataBufferSize, size_t &outDataActualSize)
 Decompress an array of bytes into another one
Exceptions:
std::exception If the apriori estimated decompressed size is not enought.

bool MRPTDLLIMPEXP mrpt::compress::zip::decompress_gz_file (const std::string &file_path, vector_byte &buffer)
 Decompress a gzip file (xxxx.gz) into a memory buffer.
bool MRPTDLLIMPEXP mrpt::compress::zip::compress_gz_file (const std::string &file_path, const vector_byte &buffer, const int compress_level=9)
 Compress a memory buffer into a gzip file (xxxx.gz).
bool MRPTDLLIMPEXP mrpt::compress::zip::compress_gz_data_block (const vector_byte &in_data, vector_byte &out_gz_data, const int compress_level=9)
 Compress a memory buffer in gz-file format and return it as a block a memory.
bool MRPTDLLIMPEXP mrpt::compress::zip::decompress_gz_data_block (const vector_byte &in_gz_data, vector_byte &out_data)
 Decompress an array of bytes storing a gz-compressed stream of data into a memory buffer.




Page generated by Doxygen 1.5.7.1 for MRPT 0.7.1 SVN: at Mon Aug 17 22:58:25 EDT 2009