Guitar
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gunzip Class Reference

#include <gunzip.h>

Public Member Functions

void set_header_only (bool f)
 
void set_maximul_size (int64_t size)
 
bool decode (QIODevice *input, QIODevice *output)
 
bool decode (QString const &inpath, QString const &outpath)
 

Static Public Member Functions

static bool is_valid_gz_file (QIODevice *input)
 
static bool is_valid_gz_file (QString const &inpath)
 

Public Attributes

QString error
 
bool header_only = false
 
int64_t maxsize = -1
 
std::function< bool(QIODevice *)> open
 
std::function< void(QIODevice *)> close
 
std::function< bool(QIODevice *, char const *ptr, int len)> write
 

Member Function Documentation

◆ decode() [1/2]

bool gunzip::decode ( QIODevice *  input,
QIODevice *  output 
)

◆ decode() [2/2]

bool gunzip::decode ( QString const &  inpath,
QString const &  outpath 
)
Here is the call graph for this function:

◆ is_valid_gz_file() [1/2]

bool gunzip::is_valid_gz_file ( QIODevice *  input)
static
Here is the call graph for this function:

◆ is_valid_gz_file() [2/2]

bool gunzip::is_valid_gz_file ( QString const &  inpath)
static
Here is the call graph for this function:

◆ set_header_only()

void gunzip::set_header_only ( bool  f)

◆ set_maximul_size()

void gunzip::set_maximul_size ( int64_t  size)

Member Data Documentation

◆ close

std::function<void(QIODevice *)> gunzip::close

◆ error

QString gunzip::error

◆ header_only

bool gunzip::header_only = false

◆ maxsize

int64_t gunzip::maxsize = -1

◆ open

std::function<bool(QIODevice *)> gunzip::open

◆ write

std::function<bool(QIODevice *, char const *ptr, int len)> gunzip::write

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