Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Hoffman (0.15 sec)

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

            }
            out.writeByte(value)
          }
    
          @Throws(IOException::class)
          fun writeByteString(data: ByteString) {
            if (useCompression && Huffman.encodedLength(data) < data.size) {
              val huffmanBuffer = Buffer()
              Huffman.encode(data, huffmanBuffer)
              val huffmanBytes = huffmanBuffer.readByteString()
              writeInt(huffmanBytes.size, PREFIX_7_BITS, 0x80)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        val expected =
          Buffer()
            .writeByte(0x40) // Literal header, new name.
            .writeByte(0x82) // String literal is Huffman encoded (len = 2).
            .writeByte(0x94) // 'foo' Huffman encoded.
            .writeByte(0xE7)
            .writeByte(3) // String literal not Huffman encoded (len = 3).
            .writeByte('b'.code)
            .writeByte('a'.code)
            .writeByte('r'.code)
            .readByteString()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
Back to top