Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 108 of file hpacktable.cpp.
void HPack::FieldLookupTable::clearDynamicTable | ( | ) |
Definition at line 210 of file hpacktable.cpp.
Referenced by prependField(), and updateDynamicTableSize().
quint32 HPack::FieldLookupTable::dynamicDataSize | ( | ) | const |
Definition at line 205 of file hpacktable.cpp.
Referenced by HPack::Encoder::dynamicTableSize(), and HPack::Decoder::dynamicTableSize().
void HPack::FieldLookupTable::evictEntry | ( | ) |
Definition at line 159 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 281 of file hpacktable.cpp.
References ChunkSize, indexIsValid(), HPack::HeaderField::name, Q_ASSERT, and staticPart().
Referenced by evictEntry(), fieldName(), fieldValue(), indexOf(), and indexOf().
bool HPack::FieldLookupTable::fieldName | ( | quint32 | index, |
QByteArray * | dst ) const |
Definition at line 307 of file hpacktable.cpp.
References field(), and Q_ASSERT.
bool HPack::FieldLookupTable::fieldValue | ( | quint32 | index, |
QByteArray * | dst ) const |
Definition at line 313 of file hpacktable.cpp.
References field(), and Q_ASSERT.
bool HPack::FieldLookupTable::indexIsValid | ( | quint32 | index | ) | const |
Definition at line 220 of file hpacktable.cpp.
References staticPart().
Referenced by field().
quint32 HPack::FieldLookupTable::indexOf | ( | const QByteArray & | name | ) | const |
Definition at line 253 of file hpacktable.cpp.
References field(), pos, QByteArray(), qCritical, and staticPart().
quint32 HPack::FieldLookupTable::indexOf | ( | const QByteArray & | name, |
const QByteArray & | value ) const |
Definition at line 225 of file hpacktable.cpp.
References field(), pos, qCritical, and staticPart().
quint32 HPack::FieldLookupTable::numberOfDynamicEntries | ( | ) | const |
Definition at line 200 of file hpacktable.cpp.
quint32 HPack::FieldLookupTable::numberOfEntries | ( | ) | const |
Definition at line 190 of file hpacktable.cpp.
References staticPart().
quint32 HPack::FieldLookupTable::numberOfStaticEntries | ( | ) | const |
Definition at line 195 of file hpacktable.cpp.
References staticPart().
bool HPack::FieldLookupTable::prependField | ( | const QByteArray & | name, |
const QByteArray & | value ) |
Definition at line 120 of file hpacktable.cpp.
References ChunkSize, clearDynamicTable(), HPack::entry_size(), evictEntry(), Q_ASSERT, and Q_UNUSED.
Definition at line 401 of file hpacktable.cpp.
References updateDynamicTableSize().
Referenced by HPack::Encoder::setMaxDynamicTableSize(), and HPack::Decoder::setMaxDynamicTableSize().
|
static |
Definition at line 414 of file hpacktable.cpp.
Referenced by field(), indexIsValid(), indexOf(), indexOf(), numberOfEntries(), and numberOfStaticEntries().
bool HPack::FieldLookupTable::updateDynamicTableSize | ( | quint32 | size | ) |
Definition at line 384 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.