9 #ifndef ZipCompression_H 10 #define ZipCompression_H 30 void* inData,
size_t inDataSize, std::vector<unsigned char>& outData);
34 const std::vector<unsigned char>& inData,
35 std::vector<unsigned char>& outData);
48 void* inData,
size_t inDataSize, std::vector<unsigned char>& outData,
49 size_t outDataEstimatedSize);
56 void* inData,
size_t inDataSize,
void* outData,
size_t outDataBufferSize,
57 size_t& outDataActualSize);
65 size_t outDataBufferSize,
size_t& outDataActualSize);
81 const int compress_level = 9);
93 const int compress_level = 9);
std::vector< uint8_t > vector_byte
bool 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...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
bool decompress_gz_file(const std::string &file_path, vector_byte &buffer)
Decompress a gzip file (xxxx.gz) into a memory buffer.
void compress(const std::vector< unsigned char > &inData, mrpt::utils::CStream &out)
Compress an array of bytes and write the result into a stream.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
bool 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).
void compress(void *inData, size_t inDataSize, std::vector< unsigned char > &outData)
Compress an array of bytes into another one.
void decompress(void *inData, size_t inDataSize, std::vector< unsigned char > &outData, size_t outDataEstimatedSize)
Decompress an array of bytes into another one.
bool 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.