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>.
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 108 of file hpacktable.cpp.

Member Function Documentation

◆ clearDynamicTable()

void HPack::FieldLookupTable::clearDynamicTable ( )

Definition at line 210 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 205 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 159 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 281 of file hpacktable.cpp.

References ChunkSize, indexIsValid(), HPack::HeaderField::name, Q_ASSERT, and staticPart().

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 307 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 313 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 220 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 253 of file hpacktable.cpp.

References field(), pos, QByteArray(), qCritical, 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 225 of file hpacktable.cpp.

References field(), pos, qCritical, and staticPart().

+ Here is the call graph for this function:

◆ numberOfDynamicEntries()

quint32 HPack::FieldLookupTable::numberOfDynamicEntries ( ) const

Definition at line 200 of file hpacktable.cpp.

◆ numberOfEntries()

quint32 HPack::FieldLookupTable::numberOfEntries ( ) const

Definition at line 190 of file hpacktable.cpp.

References staticPart().

+ Here is the call graph for this function:

◆ numberOfStaticEntries()

quint32 HPack::FieldLookupTable::numberOfStaticEntries ( ) const

Definition at line 195 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 120 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 401 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 414 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 384 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.


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