| 
    Tkrzw
    
   | 
 
Interfrace of data compression and decompression. More...
#include <tkrzw_compress.h>
Public Member Functions | |
| virtual | ~Compressor ()=default | 
| Destructor.  More... | |
| virtual bool | IsSupported () const =0 | 
| Checks whether the implementation is actually supported.  More... | |
| virtual char * | Compress (const void *buf, size_t size, size_t *sp) const =0 | 
| Compresses a serial data.  More... | |
| virtual char * | Decompress (const void *buf, size_t size, size_t *sp) const =0 | 
| Decompresses a serial data.  More... | |
| virtual std::unique_ptr< Compressor > | MakeCompressor () const =0 | 
| Makes a new Compressor object of the same concrete class.  More... | |
| const std::type_info & | GetType () const | 
| Gets the type information of the actual class.  More... | |
Interfrace of data compression and decompression.
      
  | 
  virtualdefault | 
Destructor.
      
  | 
  pure virtual | 
Checks whether the implementation is actually supported.
Implemented in tkrzw::AESCompressor, tkrzw::RC4Compressor, tkrzw::LZMACompressor, tkrzw::LZ4Compressor, tkrzw::ZStdCompressor, tkrzw::ZLibCompressor, and tkrzw::DummyCompressor.
      
  | 
  pure virtual | 
Compresses a serial data.
| buf | the input buffer. | 
| size | the size of the input buffer. | 
| sp | the pointer to the variable into which the size of the region of the return value is assigned. | 
Because the region of the return value is allocated with the xmalloc function, it should be released with the xfree function.
Implemented in tkrzw::AESCompressor, tkrzw::RC4Compressor, tkrzw::LZMACompressor, tkrzw::LZ4Compressor, tkrzw::ZStdCompressor, tkrzw::ZLibCompressor, and tkrzw::DummyCompressor.
      
  | 
  pure virtual | 
Decompresses a serial data.
| buf | the input buffer. | 
| size | the size of the input buffer. | 
| sp | the pointer to the variable into which the size of the region of the return value is assigned. | 
Because the region of the return value is allocated with the xmalloc function, it should be released with the xfree function.
Implemented in tkrzw::AESCompressor, tkrzw::RC4Compressor, tkrzw::LZMACompressor, tkrzw::LZ4Compressor, tkrzw::ZStdCompressor, tkrzw::ZLibCompressor, and tkrzw::DummyCompressor.
      
  | 
  pure virtual | 
Makes a new Compressor object of the same concrete class.
Implemented in tkrzw::AESCompressor, tkrzw::RC4Compressor, tkrzw::LZMACompressor, tkrzw::LZ4Compressor, tkrzw::ZStdCompressor, tkrzw::ZLibCompressor, and tkrzw::DummyCompressor.
| const std::type_info& tkrzw::Compressor::GetType | ( | ) | const | 
Gets the type information of the actual class.