Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for shl (0.17 sec)

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

        val bit = 1 shl ENABLE_PUSH
        return if (bit and set != 0) values[ENABLE_PUSH] == 1 else defaultValue
      }
    
      fun getMaxConcurrentStreams(): Int {
        val bit = 1 shl MAX_CONCURRENT_STREAMS
        return if (bit and set != 0) values[MAX_CONCURRENT_STREAMS] else Int.MAX_VALUE
      }
    
      fun getMaxFrameSize(defaultValue: Int): Int {
        val bit = 1 shl MAX_FRAME_SIZE
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          accumulator = (accumulator shl codeBitCount) or code.toLong()
          accumulatorBitCount += codeBitCount
    
          while (accumulatorBitCount >= 8) {
            accumulatorBitCount -= 8
            sink.writeByte((accumulator shr accumulatorBitCount).toInt())
          }
        }
    
        if (accumulatorBitCount > 0) {
          accumulator = accumulator shl (8 - accumulatorBitCount)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

            val codepointDelta = (b1 and 0xF shl 14) or (b2 shl 7) or b3
            sink.writeUtf8CodePoint(codePoint - codepointDelta)
          }
          in 80..95 -> {
            // Mapped inline as codePoint delta to add
            val b2 = ranges[rangesIndex + 2].code
            val b3 = ranges[rangesIndex + 3].code
    
            val codepointDelta = (b1 and 0xF shl 14) or (b2 shl 7) or b3
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

              mappedToCodePoints = listOf((1 shl 18) - 1),
            ),
          ),
        ).isEqualTo(
          InlineDelta(
            rangeStart = 0,
            codepointDelta = InlineDelta.MAX_VALUE,
          ),
        )
    
        assertThat(
          inlineDeltaOrNull(
            mappingOf(
              sourceCodePoint0 = 0,
              sourceCodePoint1 = 0,
              mappedToCodePoints = listOf(1 shl 18),
            ),
          ),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        assertThat(compactTable.sections.length).isLessThan(1 shl 14)
    
        // Less than 65,536 bytes, because we binary search on a 14-bit index with a stride of 4 bytes.
        assertThat(compactTable.ranges.length).isLessThan((1 shl 14) * 4)
    
        // Less than 16,384 chars, because we index on a 14-bit index in the ranges table.
        assertThat(compactTable.mappings.length).isLessThan(1 shl 14)
    
        // Confirm the data strings are ASCII.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

                throw ProtocolException("invalid encoding for length")
              }
    
              for (i in 1 until lengthBytes) {
                lengthBits = lengthBits shl 8
                lengthBits += source.readByte().toInt() and 0xff
              }
    
              if (lengthBits < 0) throw ProtocolException("length > Long.MAX_VALUE")
    
              lengthBits
            }
            else -> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        // Read a group, one to four hex digits.
        var value = 0
        groupOffset = i
        while (i < limit) {
          val hexDigit = input[i].parseHexDigit()
          if (hexDigit == -1) break
          value = (value shl 4) + hexDigit
          i++
        }
        val groupLength = i - groupOffset
        if (groupLength == 0 || groupLength > 4) return null // Group is the wrong size.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      writeByte(medium.ushr(8) and 0xff)
      writeByte(medium and 0xff)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readMedium(): Int {
      return (
        readByte() and 0xff shl 16
          or (readByte() and 0xff shl 8)
          or (readByte() and 0xff)
      )
    }
    
    /** Run [block] until it either throws an [IOException] or completes. */
    internal inline fun ignoreIoExceptions(block: () -> Unit) {
      try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

            while (true) {
              val b = readByte()
              if (b and 0x80 != 0) { // Equivalent to (b >= 128) since b is in [0..255].
                result += b and 0x7f shl shift
                shift += 7
              } else {
                result += b shl shift // Last byte.
                break
              }
            }
            return result
          }
    
          /** Reads a potentially Huffman encoded byte string. */
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

                if (c.isLowSurrogate() || !low.isLowSurrogate()) {
                  '?'.code
                } else {
                  i++
                  0x010000 + (c.code and 0x03ff shl 10 or (low.code and 0x03ff))
                }
              }
    
              else -> c.code
            }
          i++
        }
        return result
      }
    
      private val Int.punycodeDigit: Int
        get() =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top