Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for toInt (0.19 sec)

  1. 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)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. build.gradle.kts

            "-Xjvm-default=all",
          )
        }
      }
    
      val platform = System.getProperty("okhttp.platform", "jdk9")
      val testJavaVersion = System.getProperty("test.java.version", "21").toInt()
    
      val testRuntimeOnly: Configuration by configurations.getting
      dependencies {
        testRuntimeOnly(rootProject.libs.junit.jupiter.engine)
        testRuntimeOnly(rootProject.libs.junit.vintage.engine)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. 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;
            }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. 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)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  5. 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;
            }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. 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 {
        return Buffer()
          .write(this, 0, size - 1)
          .writeByte(this[size - 1].toInt() xor 1)
          .readByteString()
      }
    
      private fun date(s: String): Date {
        return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
          parse(s)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
  7. okhttp/src/main/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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

          // add non-stateless strategies (for which we've reserved negative ordinals; see
          // Strategy.ordinal()).
          strategyOrdinal = din.readByte();
          numHashFunctions = UnsignedBytes.toInt(din.readByte());
          dataLength = din.readInt();
    
          Strategy strategy = BloomFilterStrategies.values()[strategyOrdinal];
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. 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 }
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                requestBodySink.write(source, contentLength)
              }
    
              chunked -> {
                hasBody = true
                while (true) {
                  val chunkSize = source.readUtf8LineStrict().trim().toInt(16)
                  if (chunkSize == 0) {
                    readEmptyLine(source)
                    break
                  }
                  chunkSizes.add(chunkSize)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top