diff options
Diffstat (limited to 'src/core/transport/chttp2/hpack_table.h')
-rw-r--r-- | src/core/transport/chttp2/hpack_table.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/transport/chttp2/hpack_table.h b/src/core/transport/chttp2/hpack_table.h index a173eec30c..e7431255fc 100644 --- a/src/core/transport/chttp2/hpack_table.h +++ b/src/core/transport/chttp2/hpack_table.h @@ -60,21 +60,21 @@ /* hpack decoder table */ typedef struct { /* the first used entry in ents */ - gpr_uint32 first_ent; + uint32_t first_ent; /* how many entries are in the table */ - gpr_uint32 num_ents; + uint32_t num_ents; /* the amount of memory used by the table, according to the hpack algorithm */ - gpr_uint32 mem_used; + uint32_t mem_used; /* the max memory allowed to be used by the table, according to the hpack algorithm */ - gpr_uint32 max_bytes; + uint32_t max_bytes; /* the currently agreed size of the table, according to the hpack algorithm */ - gpr_uint32 current_table_bytes; + uint32_t current_table_bytes; /* Maximum number of entries we could possibly fit in the table, given defined overheads */ - gpr_uint32 max_entries; + uint32_t max_entries; /* Number of entries allocated in ents */ - gpr_uint32 cap_entries; + uint32_t cap_entries; /* a circular buffer of headers - this is stored in the opposite order to what hpack specifies, in order to simplify table management a little... meaning lookups need to SUBTRACT from the end position */ @@ -86,20 +86,20 @@ typedef struct { void grpc_chttp2_hptbl_init(grpc_chttp2_hptbl *tbl); void grpc_chttp2_hptbl_destroy(grpc_chttp2_hptbl *tbl); void grpc_chttp2_hptbl_set_max_bytes(grpc_chttp2_hptbl *tbl, - gpr_uint32 max_bytes); + uint32_t max_bytes); int grpc_chttp2_hptbl_set_current_table_size(grpc_chttp2_hptbl *tbl, - gpr_uint32 bytes); + uint32_t bytes); /* lookup a table entry based on its hpack index */ grpc_mdelem *grpc_chttp2_hptbl_lookup(const grpc_chttp2_hptbl *tbl, - gpr_uint32 index); + uint32_t index); /* add a table entry to the index */ int grpc_chttp2_hptbl_add(grpc_chttp2_hptbl *tbl, grpc_mdelem *md) GRPC_MUST_USE_RESULT; /* Find a key/value pair in the table... returns the index in the table of the most similar entry, or 0 if the value was not found */ typedef struct { - gpr_uint32 index; + uint32_t index; int has_value; } grpc_chttp2_hptbl_find_result; grpc_chttp2_hptbl_find_result grpc_chttp2_hptbl_find( |