silk.http.hpack_tables.
RFC 7541 Appendix A static fields and Appendix B Huffman decoding trie.
Public declarations: 5.
field#
pub fn field(index: usize) -> Field<'static>Returns the RFC 7541 static field at a one-based index from 1 through 61. Other indices return an empty field.
nameIndex#
pub fn nameIndex(name: &[u8]) -> usizeReturns the lowest RFC 7541 static index whose name is name, or 0 when no static field has
that name. The fields that share a name have consecutive indices.
next#
pub fn next(node: usize, bit: bool) -> usizeReturns the child of a valid Huffman trie node for one input bit.
symbol#
pub fn symbol(node: usize) -> usizeReturns a byte symbol, 256 for EOS, or 257 for an internal node. The node must be a valid trie index.
huffmanStep#
pub fn huffmanStep(state: usize, nibble: usize) -> u32Decodes four Huffman input bits from decoder state state, which starts at 0. Bits 0 to 7 of
the result hold the next state, bits 8 to 15 a decoded byte, bit 16 says the byte is present,
bit 17 says the input decoded EOS, and bit 18 says the input may end in the next state. The
state must come from an earlier result, and nibble must be below 16.
Category: HTTP.
Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.