Marine Library  1.0
C++ library for Linux Networking Development
Public Member Functions | List of all members
CCompressorLzo Class Reference

A convenient interface for miniLZO compression algorithm. More...

#include <compress_lzo.hh>

Public Member Functions

 CCompressorLzo ()
 Default constructor.
 
Compression

Compress given data.

If output is not empty, the result will append to output.

Parameters
[in]inputData to be compressed
[out]outputA buffer to receive the result
Returns
true if succeeded; otherwise false
bool compress (const std::vector< char > &input, std::vector< char > &output) const
 
bool compress (const std::vector< signed char > &input, std::vector< signed char > &output) const
 
bool compress (const std::vector< unsigned char > &input, std::vector< unsigned char > &output) const
 
bool compress (const std::string &input, std::string &output) const
 
Decompression

Decompress given data.

If output is not empty, the result will append to output.

Parameters
[in]inputData to be decompressed
[out]outputA buffer to receive the result
Returns
true if succeeded; otherwise false
bool decompress (const std::vector< char > &input, std::vector< char > &output) const
 
bool decompress (const std::vector< signed char > &input, std::vector< signed char > &output) const
 
bool decompress (const std::vector< unsigned char > &input, std::vector< unsigned char > &output) const
 
bool decompress (const std::string &input, std::string &output) const
 

Detailed Description

A convenient interface for miniLZO compression algorithm.

Note
CCompressorLzo object can NOT be copied.

The documentation for this class was generated from the following file: