Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for prefixMask (0.04 seconds)

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

          fun readInt(
            firstByte: Int,
            prefixMask: Int,
          ): Int {
            val prefix = firstByte and prefixMask
            if (prefix < prefixMask) {
              return prefix // This was a single byte value.
            }
    
            // This is a multibyte value. Read 7 bits at a time.
            var result = prefixMask
            var shift = 0
            while (true) {
              val b = readByte()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 23.2K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        assertBytes(31, 224, 255, 255, 255, 7)
        assertThat(newReader(byteStream(224, 255, 255, 255, 7)).readInt(31, 31))
          .isEqualTo(0x7fffffff)
      }
    
      @Test
      fun prefixMask() {
        hpackWriter!!.writeInt(31, 31, 0)
        assertBytes(31, 0)
        assertThat(newReader(byteStream(0)).readInt(31, 31)).isEqualTo(31)
      }
    
      @Test
      fun prefixMaskMinusOne() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 38.6K bytes
    - Click Count (0)
Back to Top