- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeBlockHuff (0.59 sec)
-
src/compress/flate/deflate.go
// Handle small sizes. if d.windowEnd < 128 { switch { case d.windowEnd == 0: return case d.windowEnd <= 16: d.err = d.writeStoredBlock(d.window[:d.windowEnd]) default: d.w.writeBlockHuff(false, d.window[:d.windowEnd]) d.err = d.w.err } d.windowEnd = 0 d.bestSpeed.reset() return } } // Encode the block.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 20.3K bytes - Viewed (0) -
src/compress/flate/huffman_bit_writer.go
offsetFreq[0] = 1 huffOffset = newHuffmanEncoder(offsetCodeCount) huffOffset.generate(offsetFreq, 15) } // writeBlockHuff encodes a block of bytes as either // Huffman encoded literals or uncompressed bytes if the // results only gains very little from compression. func (w *huffmanBitWriter) writeBlockHuff(eof bool, input []byte) { if w.err != nil { return } // Clear histogram for i := range w.literalFreq {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:59:14 UTC 2022 - 18.4K bytes - Viewed (0)