Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
grpc_core::HPackTable Class Reference

#include <hpack_parser_table.h>

Classes

class  MementoRingBuffer
 
struct  StaticMementos
 

Public Types

using Memento = ParsedMetadata< grpc_metadata_batch >
 

Public Member Functions

grpc_error_handle Add (Memento md) GRPC_MUST_USE_RESULT
 
 HPackTable ()
 
 HPackTable (const HPackTable &)=delete
 
const MementoLookup (uint32_t index) const
 
uint32_t num_entries () const
 
HPackTableoperator= (const HPackTable &)=delete
 
grpc_error_handle SetCurrentTableSize (uint32_t bytes)
 
void SetMaxBytes (uint32_t max_bytes)
 
 ~HPackTable ()
 

Private Member Functions

void EvictOne ()
 
const MementoLookupDynamic (uint32_t index) const
 

Static Private Member Functions

static const StaticMementosGetStaticMementos () GPR_ATTRIBUTE_NOINLINE
 

Private Attributes

uint32_t current_table_bytes_ = hpack_constants::kInitialTableSize
 
MementoRingBuffer entries_
 
uint32_t max_bytes_ = hpack_constants::kInitialTableSize
 
uint32_t mem_used_ = 0
 
const StaticMementosstatic_metadata_
 

Detailed Description

Definition at line 36 of file hpack_parser_table.h.

Member Typedef Documentation

◆ Memento

Definition at line 47 of file hpack_parser_table.h.

Constructor & Destructor Documentation

◆ HPackTable() [1/2]

grpc_core::HPackTable::HPackTable ( )

Definition at line 81 of file hpack_parser_table.cc.

◆ ~HPackTable()

grpc_core::HPackTable::~HPackTable ( )
default

◆ HPackTable() [2/2]

grpc_core::HPackTable::HPackTable ( const HPackTable )
delete

Member Function Documentation

◆ Add()

grpc_error_handle grpc_core::HPackTable::Add ( Memento  md)

Definition at line 127 of file hpack_parser_table.cc.

◆ EvictOne()

void grpc_core::HPackTable::EvictOne ( )
private

Definition at line 86 of file hpack_parser_table.cc.

◆ GetStaticMementos()

auto grpc_core::HPackTable::GetStaticMementos ( )
staticprivate

Definition at line 244 of file hpack_parser_table.cc.

◆ Lookup()

const Memento* grpc_core::HPackTable::Lookup ( uint32_t  index) const
inline

Definition at line 50 of file hpack_parser_table.h.

◆ LookupDynamic()

const Memento* grpc_core::HPackTable::LookupDynamic ( uint32_t  index) const
inlineprivate

Definition at line 109 of file hpack_parser_table.h.

◆ num_entries()

uint32_t grpc_core::HPackTable::num_entries ( ) const
inline

Definition at line 68 of file hpack_parser_table.h.

◆ operator=()

HPackTable& grpc_core::HPackTable::operator= ( const HPackTable )
delete

◆ SetCurrentTableSize()

grpc_error_handle grpc_core::HPackTable::SetCurrentTableSize ( uint32_t  bytes)

Definition at line 105 of file hpack_parser_table.cc.

◆ SetMaxBytes()

void grpc_core::HPackTable::SetMaxBytes ( uint32_t  max_bytes)

Definition at line 92 of file hpack_parser_table.cc.

Member Data Documentation

◆ current_table_bytes_

uint32_t grpc_core::HPackTable::current_table_bytes_ = hpack_constants::kInitialTableSize
private

Definition at line 123 of file hpack_parser_table.h.

◆ entries_

MementoRingBuffer grpc_core::HPackTable::entries_
private

Definition at line 125 of file hpack_parser_table.h.

◆ max_bytes_

uint32_t grpc_core::HPackTable::max_bytes_ = hpack_constants::kInitialTableSize
private

Definition at line 121 of file hpack_parser_table.h.

◆ mem_used_

uint32_t grpc_core::HPackTable::mem_used_ = 0
private

Definition at line 118 of file hpack_parser_table.h.

◆ static_metadata_

const StaticMementos& grpc_core::HPackTable::static_metadata_
private

Definition at line 127 of file hpack_parser_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