Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,424 for toint (0.04 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        val flags = buf.readShort().toInt() and 0xffff
        require(flags shr 15 != 0) { "not a response" }
    
        val responseCode = flags and 0xf
    
        if (responseCode == NXDOMAIN) {
          throw UnknownHostException("$hostname: NXDOMAIN")
        } else if (responseCode == SERVFAIL) {
          throw UnknownHostException("$hostname: SERVFAIL")
        }
    
        val questionCount = buf.readShort().toInt() and 0xffff
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Murmur3_128HashFunction.java

            case 15:
              k2 ^= (long) toInt(bb.get(14)) << 48; // fall through
            case 14:
              k2 ^= (long) toInt(bb.get(13)) << 40; // fall through
            case 13:
              k2 ^= (long) toInt(bb.get(12)) << 32; // fall through
            case 12:
              k2 ^= (long) toInt(bb.get(11)) << 24; // fall through
            case 11:
              k2 ^= (long) toInt(bb.get(10)) << 16; // fall through
            case 10:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

            case 15:
              k2 ^= (long) toInt(bb.get(14)) << 48; // fall through
            case 14:
              k2 ^= (long) toInt(bb.get(13)) << 40; // fall through
            case 13:
              k2 ^= (long) toInt(bb.get(12)) << 32; // fall through
            case 12:
              k2 ^= (long) toInt(bb.get(11)) << 24; // fall through
            case 11:
              k2 ^= (long) toInt(bb.get(10)) << 16; // fall through
            case 10:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

          val byte0 = tagClass or constructedBit or tag.toInt()
          sink.writeByte(byte0)
        } else {
          val byte0 = tagClass or constructedBit or 0b0001_1111
          sink.writeByte(byte0)
          writeVariableLengthLong(tag)
        }
    
        // Write the length. This takes 1 byte if length is less than 128.
        val length = content.size
        if (length < 128) {
          sink.writeByte(length.toInt())
        } else {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt

        fun `can handle deeply nested graphs`() {
    
            val deepGraph = Peano.fromInt(1024)
    
            val read = configurationCacheRoundtripOf(deepGraph)
    
            assertThat(
                read.toInt(),
                equalTo(deepGraph.toInt())
            )
        }
    
        @Test
        fun `internal types codec leaves not implemented trace for unsupported types`() {
    
            val unsupportedBean = 42 to "42"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        if (byteCount == limit) return END_OF_DATA
    
        // We've exhausted the source stream.
        if (limit == -1L && source.exhausted()) return END_OF_DATA
    
        // Read the tag.
        val tagAndClass = source.readByte().toInt() and 0xff
        val tagClass = tagAndClass and 0b1100_0000
        val constructed = (tagAndClass and 0b0010_0000) == 0b0010_0000
        val tag =
          when (val tag0 = tagAndClass and 0b0001_1111) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
        assertThat(UnsignedBytes.toInt((byte) -1)).isEqualTo(255);
      }
    
      public void testCheckedCast() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/testdata/generics.go

    package generics
    
    type Any any
    
    var x any
    
    type T[A, B any] struct {
    	Left  A
    	Right B
    }
    
    var X T[int, string] = T[int, string]{1, "hi"}
    
    func ToInt[P interface{ ~int }](p P) int { return int(p) }
    
    var IntID = ToInt[int]
    
    type G[C comparable] int
    
    func ImplicitFunc[T ~int]() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 01 19:00:50 UTC 2021
    - 572 bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
        assertThat(UnsignedBytes.toInt((byte) -1)).isEqualTo(255);
      }
    
      public void testCheckedCast() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

      val notAfter: Long,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + notBefore.toInt()
        result = 31 * result + notAfter.toInt()
        return result
      }
    }
    
    internal data class SubjectPublicKeyInfo(
      val algorithm: AlgorithmIdentifier,
      val subjectPublicKey: BitString,
    )
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top