Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
HPack::FieldLookupTable Class Reference

#include <hpacktable_p.h>

+ Collaboration diagram for HPack::FieldLookupTable:

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
 

Detailed Description

Definition at line 110 of file hpacktable_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ChunkSize 
DefaultSize 

Definition at line 113 of file hpacktable_p.h.

Constructor & Destructor Documentation

◆ FieldLookupTable()

HPack::FieldLookupTable::FieldLookupTable ( quint32  maxTableSize,
bool  useIndex 
)

Definition at line 106 of file hpacktable.cpp.

Member Function Documentation

◆ clearDynamicTable()

void HPack::FieldLookupTable::clearDynamicTable ( )

Definition at line 208 of file hpacktable.cpp.

Referenced by prependField(), and updateDynamicTableSize().

+ Here is the caller graph for this function:

◆ dynamicDataSize()

quint32 HPack::FieldLookupTable::dynamicDataSize ( ) const

Definition at line 203 of file hpacktable.cpp.

Referenced by HPack::Encoder::dynamicTableSize(), and HPack::Decoder::dynamicTableSize().

+ Here is the caller graph for this function:

◆ evictEntry()

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().

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

◆ field()

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().

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

◆ fieldName()

bool HPack::FieldLookupTable::fieldName ( quint32  index,
QByteArray dst 
) const

Definition at line 305 of file hpacktable.cpp.

References field(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ fieldValue()

bool HPack::FieldLookupTable::fieldValue ( quint32  index,
QByteArray dst 
) const

Definition at line 311 of file hpacktable.cpp.

References field(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ indexIsValid()

bool HPack::FieldLookupTable::indexIsValid ( quint32  index) const

Definition at line 218 of file hpacktable.cpp.

References staticPart().

Referenced by field().

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

◆ indexOf() [1/2]

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().

+ Here is the call graph for this function:

◆ indexOf() [2/2]

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.

+ Here is the call graph for this function:

◆ numberOfDynamicEntries()

quint32 HPack::FieldLookupTable::numberOfDynamicEntries ( ) const

Definition at line 198 of file hpacktable.cpp.

◆ numberOfEntries()

quint32 HPack::FieldLookupTable::numberOfEntries ( ) const

Definition at line 188 of file hpacktable.cpp.

References staticPart().

+ Here is the call graph for this function:

◆ numberOfStaticEntries()

quint32 HPack::FieldLookupTable::numberOfStaticEntries ( ) const

Definition at line 193 of file hpacktable.cpp.

References staticPart().

+ Here is the call graph for this function:

◆ prependField()

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.

+ Here is the call graph for this function:

◆ setMaxDynamicTableSize()

void HPack::FieldLookupTable::setMaxDynamicTableSize ( quint32  size)

Definition at line 399 of file hpacktable.cpp.

References updateDynamicTableSize().

Referenced by HPack::Encoder::setMaxDynamicTableSize(), and HPack::Decoder::setMaxDynamicTableSize().

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

◆ staticPart()

const std::vector< HeaderField > & HPack::FieldLookupTable::staticPart ( )
static

Definition at line 412 of file hpacktable.cpp.

Referenced by field(), indexIsValid(), indexOf(), indexOf(), numberOfEntries(), and numberOfStaticEntries().

+ Here is the caller graph for this function:

◆ updateDynamicTableSize()

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().

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

Friends And Related Symbol Documentation

◆ SearchEntry

friend struct SearchEntry
friend

Definition at line 158 of file hpacktable_p.h.

Referenced by indexOf(), and indexOf().


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