Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,114 for toint (0.23 sec)

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

      var longestRunOffset = -1
      var longestRunLength = 0
      run {
        var i = 0
        while (i < address.size) {
          val currentRunOffset = i
          while (i < 16 && address[i].toInt() == 0 && address[i + 1].toInt() == 0) {
            i += 2
          }
          val currentRunLength = i - currentRunOffset
          if (currentRunLength > longestRunLength && currentRunLength >= 4) {
            longestRunOffset = currentRunOffset
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

      val status: String
    
      val code: Int
        get() {
          val statusParts = status.split(' ', limit = 3)
          require(statusParts.size >= 2) { "Unexpected status: $status" }
          return statusParts[1].toInt()
        }
    
      val message: String
        get() {
          val statusParts = status.split(' ', limit = 3)
          require(statusParts.size >= 2) { "Unexpected status: $status" }
          return statusParts[2]
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. internal/s3select/sql/funceval.go

    		return x, nil
    	case string:
    		// Parse as number, truncate floating point if
    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    		res, ok := strToInt(strings.TrimSpace(x))
    		if !ok {
    			return 0, errCastFailure("could not parse as int")
    		}
    		return res, nil
    	case []byte:
    		// Parse as number, truncate floating point if
    		// needed.
    		// String might contain trimming spaces, which
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      }
    
      @Throws(IOException::class)
      private fun readPriority(
        handler: Handler,
        streamId: Int,
      ) {
        val w1 = source.readInt()
        val exclusive = w1 and 0x80000000.toInt() != 0
        val streamDependency = w1 and 0x7fffffff
        val weight = (source.readByte() and 0xff) + 1
        handler.priority(streamId, streamDependency, weight, exclusive)
      }
    
      @Throws(IOException::class)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K 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)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        val message1 = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
        server.send(message1)
        clientListener.assertTextMessage(message1)
    
        // Client to server message big enough to be compressed.
        val message2 = repeat('b', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
        client.send(message2)
        serverListener.assertTextMessage(message2)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. src/go/constant/value.go

    	}
    }
    
    // ----------------------------------------------------------------------------
    // Numeric conversions
    
    // ToInt converts x to an [Int] value if x is representable as an [Int].
    // Otherwise it returns an [Unknown].
    func ToInt(x Value) Value {
    	switch x := x.(type) {
    	case int64Val, intVal:
    		return x
    
    	case ratVal:
    		if x.val.IsInt() {
    			return makeInt(x.val.Num())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        private class In extends InputStream {
          private int pos;
    
          @Override
          public int read() throws IOException {
            byte[] b = new byte[1];
            return read(b) == -1 ? -1 : UnsignedBytes.toInt(b[0]);
          }
    
          @Override
          public int read(byte[] b, int off, int len) {
            if (pos >= bytes.length) {
              return -1;
            }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/typecheck.go

    	// to avoid redundant "constant NNN overflows int" errors.
    	if n.Op() == ir.OLITERAL {
    		v := toint(n.Val())
    		if constant.Sign(v) < 0 {
    			base.Errorf("negative %s argument in make(%v)", arg, t)
    			return false
    		}
    		if ir.ConstOverflow(v, types.Types[types.TINT]) {
    			base.Errorf("%s argument too large in make(%v)", arg, t)
    			return false
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. api/go1.6.txt

    pkg go/build, const IgnoreVendor ImportMode
    pkg go/build, type Package struct, InvalidGoFiles []string
    pkg go/constant, func ToComplex(Value) Value
    pkg go/constant, func ToFloat(Value) Value
    pkg go/constant, func ToInt(Value) Value
    pkg go/constant, type Value interface, ExactString() string
    pkg go/types, method (*Package) SetName(string)
    pkg go/types, type ImportMode int
    pkg go/types, type ImporterFrom interface { Import, ImportFrom }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
Back to top