Decode result: parsed value and the number of bytes consumed.
- value : α
The decoded value.
- consumed : Nat
Number of bytes consumed from input.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decode an integer with the given prefix size (1-8 bits). Returns the decoded integer and number of bytes consumed.
$$\text{decodeInteger} : \text{ByteArray} \to \text{Nat} \to \text{Nat} \to \text{Option}(\text{DecodeResult}(\text{Nat}))$$
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Network.HTTP2.HPACK.decodeInteger.go bs offset pos value shift 0 = none
Instances For
Decode a string from HPACK format. The high bit of the first byte indicates Huffman encoding.
$$\text{decodeString} : \text{ByteArray} \to \text{Nat} \to \text{Option}(\text{DecodeResult}(\text{String}))$$
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decode a complete HPACK header block into a list of header fields. Updates the dynamic table as fields with indexing are decoded.
$$\text{decodeHeaders} : \text{DynamicTable} \to \text{ByteArray} \to \text{Option}(\text{List}(\text{HeaderField}) \times \text{DynamicTable})$$
Equations
- Network.HTTP2.HPACK.decodeHeaders dt bs = Network.HTTP2.HPACK.decodeHeaders.go bs 0 dt [] (bs.size + 1)