- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AppendHuffmanString (0.14 sec)
-
src/vendor/golang.org/x/net/http2/hpack/huffman.go
leaves[sym].codeLen = codeLen for i := start; i < start+end; i++ { cur.children[i] = &leaves[sym] } } } // AppendHuffmanString appends s, as encoded in Huffman codes, to dst // and returns the extended buffer. func AppendHuffmanString(dst []byte, s string) []byte { // This relies on the maximum huffman code length being 30 (See tables.go huffmanCodeLen array)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 05 19:54:32 UTC 2022 - 5.8K bytes - Viewed (0) -
src/vendor/golang.org/x/net/http2/hpack/encode.go
func appendHpackString(dst []byte, s string) []byte { huffmanLength := HuffmanEncodeLength(s) if huffmanLength < uint64(len(s)) { first := len(dst) dst = appendVarInt(dst, 7, huffmanLength) dst = AppendHuffmanString(dst, s) dst[first] |= 0x80 } else { dst = appendVarInt(dst, 7, uint64(len(s))) dst = append(dst, s...) } return dst }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 17:16:14 UTC 2022 - 7.1K bytes - Viewed (0)