Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
nghttp2_hd_huffman.h
1/* @file
2 * nghttp2 - HTTP/2 C Library
3 *
4 * Copyright (c) 2013 Tatsuhiro Tsujikawa
5 *
6 * SPDX-License-Identifier: MIT
7 */
8#pragma once
9#include <stdlib.h>
10#include <stdint.h>
11
15typedef enum {
16 NGHTTP2_HUFF_ACCEPTED = 1 << 14,
17 NGHTTP2_HUFF_SYM = 1 << 15,
18} nghttp2_huff_decode_flag;
19
29typedef struct {
30 uint16_t fstate;
32 uint8_t sym;
34
35typedef nghttp2_huff_decode huff_decode_table_type[16];
36
40typedef struct {
41 uint16_t fstate;
43
47typedef struct {
48 uint32_t nbits;
49 uint32_t code;
51
52extern const nghttp2_huff_sym huff_sym_table[];
53extern const nghttp2_huff_decode huff_decode_table[][16];
Persistent context for incremental HPACK Huffman decoding across input chunks.
Definition nghttp2_hd_huffman.h:40
uint16_t fstate
Definition nghttp2_hd_huffman.h:41
Represents the current state of an incremental HPACK Huffman decoder.
Definition nghttp2_hd_huffman.h:29
uint8_t sym
Definition nghttp2_hd_huffman.h:32
uint16_t fstate
Definition nghttp2_hd_huffman.h:30
Huffman code entry for a single symbol in the HPACK static Huffman table.
Definition nghttp2_hd_huffman.h:47
uint32_t code
Definition nghttp2_hd_huffman.h:49
uint32_t nbits
Definition nghttp2_hd_huffman.h:48