Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for sina (0.02 sec)

  1. guava-tests/test/com/google/common/hash/HashTestUtils.java

            boolean value = random.nextBoolean();
            for (PrimitiveSink sink : sinks) {
              sink.putBoolean(value);
            }
          }
        },
        PUT_BYTE() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            int value = random.nextInt();
            for (PrimitiveSink sink : sinks) {
              sink.putByte((byte) value);
            }
          }
        },
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

          return delegate.contentLength();
        }
    
        @Override
        public void writeTo(BufferedSink sink) throws IOException {
          BufferedSink bufferedSink = Okio.buffer(sink(sink));
          delegate.writeTo(bufferedSink);
          bufferedSink.flush();
        }
    
        public Sink sink(Sink sink) {
          return new ForwardingSink(sink) {
            private long totalBytesWritten = 0L;
            private boolean completed = false;
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

        fun writeTo(editor: DiskLruCache.Editor) {
          editor.newSink(ENTRY_METADATA).buffer().use { sink ->
            sink.writeUtf8(url.toString()).writeByte('\n'.code)
            sink.writeUtf8(requestMethod).writeByte('\n'.code)
            sink.writeDecimalLong(varyHeaders.size.toLong()).writeByte('\n'.code)
            for (i in 0 until varyHeaders.size) {
              sink
                .writeUtf8(varyHeaders.name(i))
                .writeUtf8(": ")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

      }
    
      private suspend fun updateLocalFile() =
        withContext(Dispatchers.IO) {
          client.newCall(request).executeAsync().use { response ->
            fileSystem.sink(publicSuffixListDotDat).buffer().use { sink ->
              sink.writeAll(response.body.source())
            }
          }
        }
    
      private suspend fun readImportResults(): ImportResults =
        withContext(Dispatchers.IO) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Aug 06 05:33:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. docs/recipes.md

              }
    
              @Override public void writeTo(BufferedSink sink) throws IOException {
                BufferedSink bufferedSink = Okio.buffer(sink(sink));
                delegate.writeTo(bufferedSink);
                bufferedSink.flush();
              }
    
              public Sink sink(Sink sink) {
                return new ForwardingSink(sink) {
                  private long totalBytesWritten = 0L;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

              .post(
                object : RequestBody() {
                  override fun contentType() = null
    
                  override fun writeTo(sink: BufferedSink) {
                    for (i in 0..9) {
                      sink.writeByte(0)
                      sink.flush()
                      sleep(100)
                    }
                    fail("Expected connection to be closed")
                  }
                },
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

            COMMA_SPLITTER
                .trimResults()
                .withKeyValueSeparator(Splitter.on(':').trimResults())
                .split("boy  : tom , girl: tina , cat  : kitty , dog: tommy ");
        ImmutableMap<String, String> expected =
            ImmutableMap.of("boy", "tom", "girl", "tina", "cat", "kitty", "dog", "tommy");
        assertThat(m).isEqualTo(expected);
        assertThat(m.entrySet()).containsExactlyElementsIn(expected.entrySet()).inOrder();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

        @Throws(IOException::class)
        override fun contentLength(): Long = delegate.contentLength()
    
        @Throws(IOException::class)
        override fun writeTo(sink: BufferedSink) {
          val forwardingSink =
            object : ForwardingSink(sink) {
              private var totalBytesWritten: Long = 0
              private var completed = false
    
              override fun write(
                source: Buffer,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/AbstractByteHasher.java

    import java.nio.ByteOrder;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code
     * ByteBuffer} and streams all bytes to a sink to compute the hash.
     *
     * @author Colin Decker
     */
    abstract class AbstractByteHasher extends AbstractHasher {
      private @Nullable ByteBuffer scratch;
    
      /** Updates this hasher with the given byte. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 12:40:17 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        )
        val asyncRequestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = null
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isDuplex(): Boolean = true
          }
        val request =
          request()
            .post(asyncRequestBody)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
Back to top