Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 00000000000000000000 (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

    internal fun canonicalizeInetAddress(address: ByteArray): ByteArray =
      when {
        isMappedIpv4Address(address) -> address.sliceArray(12 until 16)
        else -> address
      }
    
    /** Returns true for IPv6 addresses like `0000:0000:0000:0000:0000:ffff:XXXX:XXXX`. */
    private fun isMappedIpv4Address(address: ByteArray): Boolean {
      if (address.size != 16) return false
    
      for (i in 0 until 10) {
        if (address[i] != 0.toByte()) return false
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

          .isEqualTo(MAX_DATE)
        assertThat(parseCookie(9223372036854773807L, url, "a=b; Max-Age=3")!!.expiresAt)
          .isEqualTo(MAX_DATE)
        assertThat(parseCookie(50000L, url, "a=b; Max-Age=10000000000000000000")!!.expiresAt)
          .isEqualTo(MAX_DATE)
      }
    
      @Test fun maxAgeNonPositive() {
        assertThat(parseCookie(50000L, url, "a=b; Max-Age=-1")!!.expiresAt)
          .isEqualTo(Long.MIN_VALUE)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertInvalid(
          "http://[0000::0000:0000:0000:0000::0001]",
          "Invalid URL host: \"[0000::0000:0000:0000:0000::0001]\"",
        )
        assertInvalid(
          "http://[::0000:0000:0000:0000::0001]",
          "Invalid URL host: \"[::0000:0000:0000:0000::0001]\"",
        )
      }
    
      @Test
      fun hostIpv6ScopedAddress() {
        // java.net.InetAddress parses scoped addresses. These aren't valid in URLs.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

        1000000000L,
        10000000000L,
        100000000000L,
        1000000000000L,
        10000000000000L,
        100000000000000L,
        1000000000000000L,
        10000000000000000L,
        100000000000000000L,
        1000000000000000000L
      };
    
      // halfPowersOf10[i] = largest long less than 10^(i + 0.5)
      @GwtIncompatible // TODO
      @VisibleForTesting
      static final long[] halfPowersOf10 = {
        3L,
        31L,
        316L,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top