![]() |
Qt 6.x
The Qt SDK
|
#include <hpacktable_p.h>
Public Types | |
enum | { ChunkSize = 16 , DefaultSize = 4096 } |
Public Member Functions | |
FieldLookupTable (quint32 maxTableSize, bool useIndex) | |
bool | prependField (const QByteArray &name, const QByteArray &value) |
void | evictEntry () |
quint32 | numberOfEntries () const |
quint32 | numberOfStaticEntries () const |
quint32 | numberOfDynamicEntries () const |
quint32 | dynamicDataSize () const |
void | clearDynamicTable () |
bool | indexIsValid (quint32 index) const |
quint32 | indexOf (const QByteArray &name, const QByteArray &value) const |
quint32 | indexOf (const QByteArray &name) const |
bool | field (quint32 index, QByteArray *name, QByteArray *value) const |
bool | fieldName (quint32 index, QByteArray *dst) const |
bool | fieldValue (quint32 index, QByteArray *dst) const |
bool | updateDynamicTableSize (quint32 size) |
void | setMaxDynamicTableSize (quint32 size) |
Static Public Member Functions | |
static const std::vector< HeaderField > & | staticPart () |
Friends | |
struct | SearchEntry |
Definition at line 110 of file hpacktable_p.h.
anonymous enum |
Enumerator | |
---|---|
ChunkSize | |
DefaultSize |
Definition at line 113 of file hpacktable_p.h.
HPack::FieldLookupTable::FieldLookupTable | ( | quint32 | maxTableSize, |
bool | useIndex | ||
) |
Definition at line 106 of file hpacktable.cpp.
void HPack::FieldLookupTable::clearDynamicTable | ( | ) |
Definition at line 208 of file hpacktable.cpp.
Referenced by prependField(), and updateDynamicTableSize().
quint32 HPack::FieldLookupTable::dynamicDataSize | ( | ) | const |
Definition at line 203 of file hpacktable.cpp.
Referenced by HPack::Encoder::dynamicTableSize(), and HPack::Decoder::dynamicTableSize().
void HPack::FieldLookupTable::evictEntry | ( | ) |
Definition at line 157 of file hpacktable.cpp.
References ChunkSize, HPack::entry_size(), field(), Q_ASSERT, and Q_UNUSED.
Referenced by prependField(), and updateDynamicTableSize().
bool HPack::FieldLookupTable::field | ( | quint32 | index, |
QByteArray * | name, | ||
QByteArray * | value | ||
) | const |
Definition at line 279 of file hpacktable.cpp.
References ChunkSize, indexIsValid(), HPack::HeaderField::name, Q_ASSERT, staticPart(), and HPack::HeaderField::value.
Referenced by evictEntry(), fieldName(), fieldValue(), indexOf(), and indexOf().
bool HPack::FieldLookupTable::fieldName | ( | quint32 | index, |
QByteArray * | dst | ||
) | const |
Definition at line 305 of file hpacktable.cpp.
References field(), and Q_ASSERT.
bool HPack::FieldLookupTable::fieldValue | ( | quint32 | index, |
QByteArray * | dst | ||
) | const |
Definition at line 311 of file hpacktable.cpp.
References field(), and Q_ASSERT.
bool HPack::FieldLookupTable::indexIsValid | ( | quint32 | index | ) | const |
Definition at line 218 of file hpacktable.cpp.
References staticPart().
Referenced by field().
quint32 HPack::FieldLookupTable::indexOf | ( | const QByteArray & | name | ) | const |
Definition at line 251 of file hpacktable.cpp.
References field(), HPack::HeaderField::name, pos, qCritical, SearchEntry, and staticPart().
quint32 HPack::FieldLookupTable::indexOf | ( | const QByteArray & | name, |
const QByteArray & | value | ||
) | const |
Definition at line 223 of file hpacktable.cpp.
References field(), HPack::HeaderField::name, pos, qCritical, SearchEntry, staticPart(), and HPack::HeaderField::value.
quint32 HPack::FieldLookupTable::numberOfDynamicEntries | ( | ) | const |
Definition at line 198 of file hpacktable.cpp.
quint32 HPack::FieldLookupTable::numberOfEntries | ( | ) | const |
Definition at line 188 of file hpacktable.cpp.
References staticPart().
quint32 HPack::FieldLookupTable::numberOfStaticEntries | ( | ) | const |
Definition at line 193 of file hpacktable.cpp.
References staticPart().
bool HPack::FieldLookupTable::prependField | ( | const QByteArray & | name, |
const QByteArray & | value | ||
) |
Definition at line 118 of file hpacktable.cpp.
References ChunkSize, clearDynamicTable(), HPack::entry_size(), evictEntry(), Q_ASSERT, and Q_UNUSED.
Definition at line 399 of file hpacktable.cpp.
References updateDynamicTableSize().
Referenced by HPack::Encoder::setMaxDynamicTableSize(), and HPack::Decoder::setMaxDynamicTableSize().
|
static |
Definition at line 412 of file hpacktable.cpp.
Referenced by field(), indexIsValid(), indexOf(), indexOf(), numberOfEntries(), and numberOfStaticEntries().
bool HPack::FieldLookupTable::updateDynamicTableSize | ( | quint32 | size | ) |
Definition at line 382 of file hpacktable.cpp.
References clearDynamicTable(), and evictEntry().
Referenced by HPack::Encoder::encodeSizeUpdate(), and setMaxDynamicTableSize().
|
friend |
Definition at line 158 of file hpacktable_p.h.