compress/flate.huffmanEncoder.codes (field)
17 uses
compress/flate (current package)
huffman_bit_writer.go#L212: cgnl[i] = uint8(litEnc.codes[i].len)
huffman_bit_writer.go#L217: cgnl[i] = uint8(offEnc.codes[i].len)
huffman_bit_writer.go#L373: value := uint(w.codegenEncoding.codes[codegenOrder[i]].len)
huffman_bit_writer.go#L384: w.writeCode(w.codegenEncoding.codes[uint32(codeWord)])
huffman_bit_writer.go#L495: w.writeTokens(tokens, literalEncoding.codes, offsetEncoding.codes)
huffman_bit_writer.go#L528: w.writeTokens(tokens, w.literalEncoding.codes, w.offsetEncoding.codes)
huffman_bit_writer.go#L661: encoding := w.literalEncoding.codes[:257]
huffman_code.go#L19: codes []hcode
huffman_code.go#L60: return &huffmanEncoder{codes: make([]hcode, size)}
huffman_code.go#L66: codes := h.codes
huffman_code.go#L99: codes := h.codes
huffman_code.go#L113: total += int(f) * int(h.codes[i].len)
huffman_code.go#L263: h.codes[node.literal] = hcode{code: reverseBits(code, uint8(n)), len: uint16(n)}
huffman_code.go#L291: h.codes[i].len = 0
huffman_code.go#L302: h.codes[node.literal].set(uint16(i), 1)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |