Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for toInt (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

          }
        headerValue = result
      }
      return result
    }
    
    internal fun Long.commonClampToInt(): Int {
      return when {
        this > Int.MAX_VALUE -> Int.MAX_VALUE
        else -> toInt()
      }
    }
    
    internal fun CacheControl.Companion.commonForceNetwork() =
      CacheControl.Builder()
        .noCache()
        .build()
    
    internal fun CacheControl.Companion.commonForceCache() =
      CacheControl.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

          isAscii() -> lowercase(Locale.US) // This is an ASCII string.
          else -> this
        }
      }
    
      /** Returns true if the [String] is ASCII encoded (0-127). */
      private fun String.isAscii() = length == utf8Size().toInt()
    
      /**
       * Returns true if [hostname] matches the domain name [pattern].
       *
       * @param hostname lower-case host name.
       * @param pattern domain name pattern from certificate. May be a wildcard pattern such as
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

        fun buildIfSupported(): Platform? {
          val jvmVersion = System.getProperty("java.specification.version", "unknown")
          try {
            // 1.8, 9, 10, 11, 12 etc
            val version = jvmVersion.toInt()
            if (version >= 9) return null
          } catch (_: NumberFormatException) {
            // expected on >= JDK 9
          }
    
          // Find Jetty's ALPN extension for OpenJDK.
          try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          } else {
            encodedCharBuffer.writeString(input, i, i + Character.charCount(codePoint), charset)
          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

            if (bufferSize == 1L) {
              throw ProtocolException("Malformed close payload length of 1.")
            } else if (bufferSize != 0L) {
              code = controlFrameBuffer.readShort().toInt()
              reason = controlFrameBuffer.readUtf8()
              val codeExceptionMessage = WebSocketProtocol.closeCodeExceptionMessage(code)
              if (codeExceptionMessage != null) throw ProtocolException(codeExceptionMessage)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/ReaderInputStream.java

      }
    
      @Override
      public void close() throws IOException {
        reader.close();
      }
    
      @Override
      public int read() throws IOException {
        return (read(singleByte) == 1) ? UnsignedBytes.toInt(singleByte[0]) : -1;
      }
    
      // TODO(chrisn): Consider trying to encode/flush directly to the argument byte
      // buffer when possible.
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

                    val agentNumEnv = System.getenv("USERNAME").replaceFirst("tcagent", "")
                    if (Regex("""\d+""").containsMatchIn(agentNumEnv)) {
                        return agentNumEnv.toInt()
                    }
                }
                return 1
            }
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Feb 09 22:52:01 GMT 2024
    - 5.7K bytes
    - Viewed (2)
  8. internal/s3select/json/record.go

    func (r *Record) Set(name string, value *sql.Value) (sql.Record, error) {
    	var v interface{}
    	if b, ok := value.ToBool(); ok {
    		v = b
    	} else if f, ok := value.ToFloat(); ok {
    		v = f
    	} else if i, ok := value.ToInt(); ok {
    		v = i
    	} else if t, ok := value.ToTimestamp(); ok {
    		v = sql.FormatSQLTimestamp(t)
    	} else if s, ok := value.ToString(); ok {
    		v = s
    	} else if value.IsNull() {
    		v = nil
    	} else if value.IsMissing() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/eventbus/EventBusTest.java

            });
    
        bus.post("hello");
    
        assertEquals(1, calls.get());
      }
    
      public void testPrimitiveSubscribeFails() {
        class SubscribesToPrimitive {
          @Subscribe
          public void toInt(int i) {}
        }
        assertThrows(IllegalArgumentException.class, () -> bus.register(new SubscribesToPrimitive()));
      }
    
      /** Records thrown exception information. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

            });
    
        bus.post("hello");
    
        assertEquals(1, calls.get());
      }
    
      public void testPrimitiveSubscribeFails() {
        class SubscribesToPrimitive {
          @Subscribe
          public void toInt(int i) {}
        }
        assertThrows(IllegalArgumentException.class, () -> bus.register(new SubscribesToPrimitive()));
      }
    
      /** Records thrown exception information. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top