34 #ifndef GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_HPACK_TABLE_H
35 #define GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_HPACK_TABLE_H
44 #define GRPC_CHTTP2_LAST_STATIC_ENTRY 61
47 #define GRPC_CHTTP2_INITIAL_HPACK_TABLE_SIZE 4096
49 #define GRPC_CHTTP2_MAX_HPACK_TABLE_SIZE GRPC_CHTTP2_INITIAL_HPACK_TABLE_SIZE
51 #define GRPC_CHTTP2_HPACK_ENTRY_OVERHEAD 32
54 #define GRPC_CHTTP2_MAX_TABLE_COUNT \
55 ((GRPC_CHTTP2_MAX_HPACK_TABLE_SIZE + GRPC_CHTTP2_HPACK_ENTRY_OVERHEAD - 1) / \
56 GRPC_CHTTP2_HPACK_ENTRY_OVERHEAD)
void grpc_chttp2_hptbl_destroy(grpc_chttp2_hptbl *tbl)
Definition: hpack_table.c:122
gpr_uint16 index
Definition: hpack_table.h:91
gpr_uint16 max_bytes
Definition: hpack_table.h:71
#define GRPC_CHTTP2_LAST_STATIC_ENTRY
Definition: hpack_table.h:44
Definition: hpack_table.h:59
grpc_mdelem * grpc_chttp2_hptbl_lookup(const grpc_chttp2_hptbl *tbl, gpr_uint32 index)
Definition: hpack_table.c:133
gpr_uint16 num_ents
Definition: hpack_table.h:66
grpc_mdctx * mdctx
Definition: hpack_table.h:60
gpr_uint16 last_ent
Definition: hpack_table.h:64
Definition: metadata.c:98
Definition: metadata.h:78
void grpc_chttp2_hptbl_add(grpc_chttp2_hptbl *tbl, grpc_mdelem *md)
Definition: hpack_table.c:161
gpr_uint16 first_ent
Definition: hpack_table.h:62
grpc_chttp2_hptbl_find_result grpc_chttp2_hptbl_find(const grpc_chttp2_hptbl *tbl, grpc_mdelem *md)
Definition: hpack_table.c:198
gpr_uint8 has_value
Definition: hpack_table.h:92
Definition: hpack_table.h:90
#define GRPC_CHTTP2_MAX_TABLE_COUNT
Definition: hpack_table.h:54
gpr_uint16 mem_used
Definition: hpack_table.h:68
void grpc_chttp2_hptbl_init(grpc_chttp2_hptbl *tbl, grpc_mdctx *mdctx)
Definition: hpack_table.c:110