MRPT  2.0.4
Namespaces | Functions
zip.h File Reference
#include <string>
#include <vector>
Include dependency graph for zip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::io
 
 mrpt::io::zip
 Compression using the "zip" algorithm and from/to gzip (gz) files.
 

Functions

void mrpt::io::zip::compress (void *inData, size_t inDataSize, std::vector< unsigned char > &outData)
 Compress an array of bytes into another one. More...
 
void mrpt::io::zip::compress (const std::vector< unsigned char > &inData, std::vector< unsigned char > &outData)
 Compress an array of bytes into another one. More...
 
void mrpt::io::zip::compress (void *inData, size_t inDataSize, mrpt::io::CStream &out)
 Compress an array of bytes and write the result into a stream. More...
 
void mrpt::io::zip::compress (const std::vector< unsigned char > &inData, mrpt::io::CStream &out)
 Compress an array of bytes and write the result into a stream. More...
 
void mrpt::io::zip::decompress (void *inData, size_t inDataSize, std::vector< unsigned char > &outData, size_t outDataEstimatedSize)
 Decompress an array of bytes into another one. More...
 
void mrpt::io::zip::decompress (void *inData, size_t inDataSize, void *outData, size_t outDataBufferSize, size_t &outDataActualSize)
 Decompress an array of bytes into another one. More...
 
void mrpt::io::zip::decompress (mrpt::io::CStream &inStream, size_t inDataSize, void *outData, size_t outDataBufferSize, size_t &outDataActualSize)
 Decompress an array of bytes into another one. More...
 
bool mrpt::io::zip::decompress_gz_file (const std::string &file_path, std::vector< uint8_t > &buffer)
 Decompress a gzip file (xxxx.gz) into a memory buffer. More...
 
bool mrpt::io::zip::compress_gz_file (const std::string &file_path, const std::vector< uint8_t > &buffer, const int compress_level=9)
 Compress a memory buffer into a gzip file (xxxx.gz). More...
 
bool mrpt::io::zip::compress_gz_data_block (const std::vector< uint8_t > &in_data, std::vector< uint8_t > &out_gz_data, const int compress_level=9)
 Compress a memory buffer in gz-file format and return it as a block a memory. More...
 
bool mrpt::io::zip::decompress_gz_data_block (const std::vector< uint8_t > &in_gz_data, std::vector< uint8_t > &out_data)
 Decompress an array of bytes storing a gz-compressed stream of data into a memory buffer. More...
 



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020