Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for huffmanDecode (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          @Throws(IOException::class)
          fun readByteString(): ByteString {
            val firstByte = readByte()
            val huffmanDecode = firstByte and 0x80 == 0x80 // 1NNNNNNN
            val length = readInt(firstByte, PREFIX_7_BITS).toLong()
    
            return if (huffmanDecode) {
              val decodeBuffer = Buffer()
              Huffman.decode(source, length, decodeBuffer)
              decodeBuffer.readByteString()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/compress/flate/inflate.go

    // trees are permitted.
    func (h *huffmanDecoder) init(lengths []int) bool {
    	// Sanity enables additional runtime tests during Huffman
    	// table construction. It's intended to be used during
    	// development to supplement the currently ad-hoc unit tests.
    	const sanity = false
    
    	if h.min != 0 {
    		*h = huffmanDecoder{}
    	}
    
    	// Count number of codes of each length,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      }
    
      @Test
      fun dynamicTableSizeHasAnUpperBound() {
        hpackWriter!!.resizeHeaderTable(1048576)
        assertThat(hpackWriter!!.maxDynamicTableByteCount).isEqualTo(16384)
      }
    
      @Test
      fun huffmanEncode() {
        hpackWriter = Hpack.Writer(4096, true, bytesOut)
        hpackWriter!!.writeHeaders(headerEntries("foo", "bar"))
        val expected =
          Buffer()
            .writeByte(0x40) // Literal header, new name.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top