Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for ToInt (0.03 sec)

  1. okhttp/build.gradle.kts

      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    val platform = System.getProperty("okhttp.platform", "jdk9")
    val testJavaVersion = System.getProperty("test.java.version", "21").toInt()
    
    val copyKotlinTemplates = tasks.register<Copy>("copyKotlinTemplates") {
      val kotlinTemplatesOutput = layout.buildDirectory.dir("generated/sources/kotlinTemplates")
    
      from("src/commonJvmAndroid/kotlinTemplates")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 03:59:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. 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. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                                val os = Os.valueOf(osString.uppercase(Locale.US))
                                val performanceTestDuration = PerformanceTestDuration(scenario, (timeInMs as Number).toInt())
                                os to (testProject to performanceTestDuration)
                            }
                    }
                }
            return pairs
                .groupBy({ it.first }, { it.second })
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

        while (true) {
          val readByteCount = onlyPart.body.read(readBuff, 1024L)
          if (readByteCount == -1L) break
          byteCount += readByteCount
          assertThat(readBuff.readUtf8()).isEqualTo("a".repeat(readByteCount.toInt()))
        }
        assertThat(byteCount).isEqualTo(1024L * 1024L * 100L)
        assertThat(multipartReader.nextPart()).isNull()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

      }
    
      /** Returns a byte string that differs from this one by one bit. */
      private fun ByteString.offByOneBit(): ByteString =
        Buffer()
          .write(this, 0, size - 1)
          .writeByte(this[size - 1].toInt() xor 1)
          .readByteString()
    
      private fun date(s: String): Date =
        SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
          parse(s)
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  6. 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: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

            if (result < 0L || result > Integer.MAX_VALUE || line.isNotEmpty()) {
              throw IOException("expected an int but was \"$result$line\"")
            }
            return result.toInt()
          } catch (e: NumberFormatException) {
            throw IOException(e.message)
          }
        }
    
        /**
         * Returns true if none of the Vary headers have changed between [cachedRequest] and
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

              Thread.currentThread().interrupt() // Retain interrupted status.
              throw InterruptedIOException()
            }
    
            toWrite = minOf(byteCount, writeBytesMaximum - writeBytesTotal).toInt()
            toWrite = minOf(toWrite, writer.maxDataLength())
            writeBytesTotal += toWrite.toLong()
          }
    
          byteCount -= toWrite.toLong()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                hasBody = true
                while (true) {
                  val chunkSize =
                    socket.source
                      .readUtf8LineStrict()
                      .trim()
                      .toInt(16)
                  if (chunkSize == 0) {
                    readEmptyLine(socket.source)
                    break
                  }
                  chunkSizes.add(chunkSize)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("POST /foo HTTP/2")
        assertArrayEquals(postBytes, request.body?.toByteArray())
        assertThat(request.headers["Content-Length"]!!.toInt()).isEqualTo(postBytes.size)
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun closeAfterFlush(protocol: Protocol) {
        setUp(protocol)
        val postBytes = "FGHIJ".toByteArray()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
Back to top