SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::xzdeflater Class Reference

XZ compress a stream in blocks. More...

Inheritance diagram for shore::xzdeflater:
shore::xzbase

Public Member Functions

 xzdeflater (std::ostream &os, const bool syncblocks=true, const size_t bs=131072, const int level=6, const bool extreme=false)
 Constructor: init encoder.
 
 ~xzdeflater ()
 Destructor: calls finish().
 
void finish ()
 Finish encoding and free buffers.
 
void write (const char *s, size_t n)
 Append a block of data.
 

Additional Inherited Members

- Protected Member Functions inherited from shore::xzbase
void xz_error (const std::string &msg)
 Report & throw.
 
void xzstat_error (const std::string &msg)
 Report together with lzma error status & throw.
 
- Protected Attributes inherited from shore::xzbase
::lzma_ret m_xzstat
 lzma error status.
 
- Static Protected Attributes inherited from shore::xzbase
static const size_t BUFSIZE =16384
 Read/write buffer size used in the inflater.
 
static const ::lzma_stream STREAM_INIT
 For initializing lzma streams.
 

Detailed Description

XZ compress a stream in blocks.


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