QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QDecompressHelper Class Reference

#include <qdecompresshelper_p.h>

Public Types

enum  ContentEncoding {
  None , Deflate , GZip , Brotli ,
  Zstandard
}
 

Public Member Functions

 QDecompressHelper ()=default
 
 ~QDecompressHelper ()
 
bool setEncoding (const QByteArray &contentEncoding)
 
bool isCountingBytes () const
 
void setCountingBytesEnabled (bool shouldCount)
 
qint64 uncompressedSize () const
 
bool hasData () const
 
void feed (const QByteArray &data)
 
void feed (QByteArray &&data)
 
void feed (const QByteDataBuffer &buffer)
 
void feed (QByteDataBuffer &&buffer)
 
qsizetype read (char *data, qsizetype maxSize)
 
bool isValid () const
 
void clear ()
 
void setDecompressedSafetyCheckThreshold (qint64 threshold)
 
QString errorString () const
 

Static Public Member Functions

static bool isSupportedEncoding (const QByteArray &encoding)
 
static QByteArrayList acceptedEncoding ()
 

Detailed Description

Definition at line 62 of file qdecompresshelper_p.h.

Member Enumeration Documentation

◆ ContentEncoding

Enumerator
None 
Deflate 
GZip 
Brotli 
Zstandard 

Definition at line 65 of file qdecompresshelper_p.h.

Constructor & Destructor Documentation

◆ QDecompressHelper()

QDecompressHelper::QDecompressHelper ( )
default

◆ ~QDecompressHelper()

QDecompressHelper::~QDecompressHelper ( )

Definition at line 125 of file qdecompresshelper.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ acceptedEncoding()

QByteArrayList QDecompressHelper::acceptedEncoding ( )
static

Definition at line 112 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void QDecompressHelper::clear ( )

Definition at line 553 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ errorString()

QString QDecompressHelper::errorString ( ) const

Definition at line 548 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ feed() [1/4]

void QDecompressHelper::feed ( const QByteArray data)

Definition at line 258 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ feed() [2/4]

void QDecompressHelper::feed ( const QByteDataBuffer buffer)

Definition at line 285 of file qdecompresshelper.cpp.

Here is the call graph for this function:

◆ feed() [3/4]

void QDecompressHelper::feed ( QByteArray &&  data)

Definition at line 272 of file qdecompresshelper.cpp.

Here is the call graph for this function:

◆ feed() [4/4]

void QDecompressHelper::feed ( QByteDataBuffer &&  buffer)

Definition at line 298 of file qdecompresshelper.cpp.

◆ hasData()

bool QDecompressHelper::hasData ( ) const

Definition at line 510 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCountingBytes()

bool QDecompressHelper::isCountingBytes ( ) const

Definition at line 202 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ isSupportedEncoding()

bool QDecompressHelper::isSupportedEncoding ( const QByteArray encoding)
static

Definition at line 107 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ isValid()

bool QDecompressHelper::isValid ( ) const

Definition at line 537 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ read()

qsizetype QDecompressHelper::read ( char *  data,
qsizetype  maxSize 
)

Definition at line 383 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCountingBytesEnabled()

void QDecompressHelper::setCountingBytesEnabled ( bool  shouldCount)

Definition at line 220 of file qdecompresshelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDecompressedSafetyCheckThreshold()

void QDecompressHelper::setDecompressedSafetyCheckThreshold ( qint64  threshold)

Definition at line 460 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ setEncoding()

bool QDecompressHelper::setEncoding ( const QByteArray contentEncoding)

Definition at line 130 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

◆ uncompressedSize()

qint64 QDecompressHelper::uncompressedSize ( ) const

Definition at line 242 of file qdecompresshelper.cpp.

Here is the caller graph for this function:

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