26 void* inData,
size_t inDataSize, std::vector<unsigned char>& outData);
30 const std::vector<unsigned char>& inData,
31 std::vector<unsigned char>& outData);
43 void* inData,
size_t inDataSize, std::vector<unsigned char>& outData,
44 size_t outDataEstimatedSize);
51 void* inData,
size_t inDataSize,
void* outData,
size_t outDataBufferSize,
52 size_t& outDataActualSize);
60 size_t outDataBufferSize,
size_t& outDataActualSize);
68 const std::string& file_path, std::vector<uint8_t>& buffer);
76 const std::string& file_path,
const std::vector<uint8_t>& buffer,
77 const int compress_level = 9);
88 const std::vector<uint8_t>& in_data, std::vector<uint8_t>& out_gz_data,
89 const int compress_level = 9);
98 const std::vector<uint8_t>& in_gz_data, std::vector<uint8_t>& out_data);
void decompress(void *inData, size_t inDataSize, std::vector< unsigned char > &outData, size_t outDataEstimatedSize)
Decompress an array of bytes into another one.
bool decompress_gz_file(const std::string &file_path, std::vector< uint8_t > &buffer)
Decompress a gzip file (xxxx.gz) into a memory buffer.
mrpt::io::CStream CStream
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
bool 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.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::vision::TStereoCalibResults out
bool 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...
bool 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).
void compress(void *inData, size_t inDataSize, std::vector< unsigned char > &outData)
Compress an array of bytes into another one.