Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
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
15
typedef
enum
{
16
NGHTTP2_HUFF_ACCEPTED = 1 << 14,
17
NGHTTP2_HUFF_SYM = 1 << 15,
18
} nghttp2_huff_decode_flag;
19
29
typedef
struct
{
30
uint16_t
fstate
;
32
uint8_t
sym
;
33
}
nghttp2_huff_decode
;
34
35
typedef
nghttp2_huff_decode
huff_decode_table_type[16];
36
40
typedef
struct
{
41
uint16_t
fstate
;
42
}
nghttp2_hd_huff_decode_context
;
43
47
typedef
struct
{
48
uint32_t
nbits
;
49
uint32_t
code
;
50
}
nghttp2_huff_sym
;
51
52
extern
const
nghttp2_huff_sym
huff_sym_table[];
53
extern
const
nghttp2_huff_decode
huff_decode_table[][16];
nghttp2_hd_huff_decode_context
Persistent context for incremental HPACK Huffman decoding across input chunks.
Definition
nghttp2_hd_huffman.h:40
nghttp2_hd_huff_decode_context::fstate
uint16_t fstate
Definition
nghttp2_hd_huffman.h:41
nghttp2_huff_decode
Represents the current state of an incremental HPACK Huffman decoder.
Definition
nghttp2_hd_huffman.h:29
nghttp2_huff_decode::sym
uint8_t sym
Definition
nghttp2_hd_huffman.h:32
nghttp2_huff_decode::fstate
uint16_t fstate
Definition
nghttp2_hd_huffman.h:30
nghttp2_huff_sym
Huffman code entry for a single symbol in the HPACK static Huffman table.
Definition
nghttp2_hd_huffman.h:47
nghttp2_huff_sym::code
uint32_t code
Definition
nghttp2_hd_huffman.h:49
nghttp2_huff_sym::nbits
uint32_t nbits
Definition
nghttp2_hd_huffman.h:48
Generated by
1.9.8