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

Decode and seek in an xz compressed stream. More...

Inheritance diagram for shore::xzinflater:
shore::xzbase

Public Member Functions

 xzinflater (std::istream &is, const bool raw_seekable)
 
std::streamsize read (char *s, size_t n)
 Read block of data. More...
 
std::streampos seek (int64_t ofs, std::ios_base::seekdir way)
 Use the index to seek to a position.
 
const xzindexget_index () const
 

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

Decode and seek in an xz compressed stream.

Member Function Documentation

std::streamsize shore::xzinflater::read ( char *  s,
size_t  n 
)

Read block of data.

Parameters
[out]sBuffer
[in]nMaximum number of charactes to read
Returns
The number of characters read, or -1 for eof

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