Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::HPackEncoderTable Class Reference

#include <hpack_encoder_table.h>

Public Member Functions

uint32_t AllocateIndex (size_t element_size)
 
bool ConvertableToDynamicIndex (uint32_t index) const
 
uint32_t DynamicIndex (uint32_t index) const
 
 HPackEncoderTable ()
 
uint32_t max_size () const
 
bool SetMaxSize (uint32_t max_table_size)
 
uint32_t test_only_table_size () const
 

Static Public Member Functions

static constexpr size_t MaxEntrySize ()
 

Private Member Functions

void EvictOne ()
 
void Rebuild (uint32_t capacity)
 

Private Attributes

absl::InlinedVector< uint16_t, hpack_constants::kInitialTableEntrieselem_size_
 
uint32_t max_table_size_ = hpack_constants::kInitialTableSize
 
uint32_t table_elems_ = 0
 
uint32_t table_size_ = 0
 
uint32_t tail_remote_index_ = 0
 

Detailed Description

Definition at line 31 of file hpack_encoder_table.h.

Constructor & Destructor Documentation

◆ HPackEncoderTable()

grpc_core::HPackEncoderTable::HPackEncoderTable ( )
inline

Definition at line 33 of file hpack_encoder_table.h.

Member Function Documentation

◆ AllocateIndex()

uint32_t grpc_core::HPackEncoderTable::AllocateIndex ( size_t  element_size)

Definition at line 26 of file hpack_encoder_table.cc.

◆ ConvertableToDynamicIndex()

bool grpc_core::HPackEncoderTable::ConvertableToDynamicIndex ( uint32_t  index) const
inline

Definition at line 54 of file hpack_encoder_table.h.

◆ DynamicIndex()

uint32_t grpc_core::HPackEncoderTable::DynamicIndex ( uint32_t  index) const
inline

Definition at line 49 of file hpack_encoder_table.h.

◆ EvictOne()

void grpc_core::HPackEncoderTable::EvictOne ( )
private

Definition at line 69 of file hpack_encoder_table.cc.

◆ max_size()

uint32_t grpc_core::HPackEncoderTable::max_size ( ) const
inline

Definition at line 44 of file hpack_encoder_table.h.

◆ MaxEntrySize()

static constexpr size_t grpc_core::HPackEncoderTable::MaxEntrySize ( )
inlinestaticconstexpr

Definition at line 35 of file hpack_encoder_table.h.

◆ Rebuild()

void grpc_core::HPackEncoderTable::Rebuild ( uint32_t  capacity)
private

Definition at line 79 of file hpack_encoder_table.cc.

◆ SetMaxSize()

bool grpc_core::HPackEncoderTable::SetMaxSize ( uint32_t  max_table_size)

Definition at line 52 of file hpack_encoder_table.cc.

◆ test_only_table_size()

uint32_t grpc_core::HPackEncoderTable::test_only_table_size ( ) const
inline

Definition at line 46 of file hpack_encoder_table.h.

Member Data Documentation

◆ elem_size_

absl::InlinedVector<uint16_t, hpack_constants::kInitialTableEntries> grpc_core::HPackEncoderTable::elem_size_
private

Definition at line 69 of file hpack_encoder_table.h.

◆ max_table_size_

uint32_t grpc_core::HPackEncoderTable::max_table_size_ = hpack_constants::kInitialTableSize
private

Definition at line 64 of file hpack_encoder_table.h.

◆ table_elems_

uint32_t grpc_core::HPackEncoderTable::table_elems_ = 0
private

Definition at line 65 of file hpack_encoder_table.h.

◆ table_size_

uint32_t grpc_core::HPackEncoderTable::table_size_ = 0
private

Definition at line 66 of file hpack_encoder_table.h.

◆ tail_remote_index_

uint32_t grpc_core::HPackEncoderTable::tail_remote_index_ = 0
private

Definition at line 63 of file hpack_encoder_table.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36