4#ifndef DECOMPRESS_HELPER_P_H
5#define DECOMPRESS_HELPER_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19#include <QtCore/private/qbytedata_p.h>
40 bool setEncoding(
const QByteArray &contentEncoding);
42 bool isCountingBytes()
const;
43 void setCountingBytesEnabled(
bool shouldCount);
45 qint64 uncompressedSize()
const;
58 void setDecompressedSafetyCheckThreshold(
qint64 threshold);
60 static bool isSupportedEncoding(
const QByteArray &encoding);
66 bool isPotentialArchiveBomb()
const;
67 bool hasDataInternal()
const;
75 qint64 encodedBytesAvailable()
const;
83 const qsizetype MaxDecompressedDataBufferSize = 10 * 1024 * 1024;
84 bool decoderHasData =
false;
86 bool countDecompressed =
false;
87 std::unique_ptr<QDecompressHelper> countHelper;
92 qint64 archiveBombCheckThreshold = 10 * 1024 * 1024;
93 qint64 totalUncompressedBytes = 0;
94 qint64 totalCompressedBytes = 0;
99 void *decoderPointer =
nullptr;
101 const uint8_t *brotliUnconsumedDataPtr =
nullptr;
102 size_t brotliUnconsumedAmount = 0;
QDecompressHelper()=default
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define Q_AUTOTEST_EXPORT
ReturnedValue read(const char *data)