Module H2_huffman_table

Internal module - not part of the public API.

HPACK Huffman encoding/decoding tables per RFC 7541 Appendix B. These tables are used internally by H2_hpack. Direct use is not recommended and the API may change without notice.

val encode_table : (int * int) array

encode_table.(i) returns (code, code_length_in_bits) for byte value i. Used by the Huffman encoder.

val decode_table : (int * bool * char) array

State machine table for Huffman decoding. Each entry is (next_state, is_accepting, output_char).