Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for offsetCode (0.39 sec)

  1. src/compress/flate/huffman_bit_writer.go

    			extraBits += int(w.literalFreq[lengthCode]) * int(lengthExtraBits[lengthCode-lengthCodesStart])
    		}
    		for offsetCode := 4; offsetCode < numOffsets; offsetCode++ {
    			// First four offset codes have extra size = 0.
    			extraBits += int(w.offsetFreq[offsetCode]) * int(offsetExtraBits[offsetCode])
    		}
    	}
    
    	// Figure out smallest code.
    	// Fixed Huffman baseline.
    	var literalEncoding = fixedLiteralEncoding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:59:14 UTC 2022
    - 18.4K bytes
    - Viewed (0)
  2. src/compress/flate/token.go

    // Returns the offset code corresponding to a specific offset.
    func offsetCode(off uint32) uint32 {
    	if off < uint32(len(offsetCodes)) {
    		return offsetCodes[off]
    	}
    	if off>>7 < uint32(len(offsetCodes)) {
    		return offsetCodes[off>>7] + 14
    	}
    	return offsetCodes[off>>14] + 28
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top