- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for huffmanEncode (0.1 sec)
-
okhttp/src/jvmTest/kotlin/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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 38.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 22.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt
import okio.BufferedSink import okio.BufferedSource import okio.ByteString /** * This class was originally composed from the following classes in * [Twitter Hpack][twitter_hpack]. * * * `com.twitter.hpack.HuffmanEncoder` * * `com.twitter.hpack.HuffmanDecoder` * * `com.twitter.hpack.HpackUtil` * * [twitter_hpack]: https://github.com/twitter/hpack */ object Huffman { // Appendix C: Huffman Codes
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11K bytes - Viewed (0)