Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 178 for Peeker (0.18 sec)

  1. android/guava-tests/test/com/google/common/io/TestByteSource.java

    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Random;
    
    /**
     * A byte source for testing that has configurable behavior.
     *
     * @author Colin Decker
     */
    public final class TestByteSource extends ByteSource implements TestStreamSupplier {
    
      private final byte[] bytes;
      private final ImmutableSet<TestOption> options;
    
      private boolean inputStreamOpened;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/TestByteSource.java

    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Random;
    
    /**
     * A byte source for testing that has configurable behavior.
     *
     * @author Colin Decker
     */
    public final class TestByteSource extends ByteSource implements TestStreamSupplier {
    
      private final byte[] bytes;
      private final ImmutableSet<TestOption> options;
    
      private boolean inputStreamOpened;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  3. src/compress/flate/example_test.go

    func Example_reset() {
    	proverbs := []string{
    		"Don't communicate by sharing memory, share memory by communicating.\n",
    		"Concurrency is not parallelism.\n",
    		"The bigger the interface, the weaker the abstraction.\n",
    		"Documentation is for users.\n",
    	}
    
    	var r strings.Reader
    	var b bytes.Buffer
    	buf := make([]byte, 32<<10)
    
    	zw, err := flate.NewWriter(nil, flate.DefaultCompression)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 18:42:35 UTC 2016
    - 6.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Response.kt

       * a modest limit on `byteCount`, such as 1 MiB.
       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
        val peeked = body.source().peek()
        val buffer = Buffer()
        peeked.request(byteCount)
        buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
        return buffer.asResponseBody(body.contentType(), buffer.size)
      }
    
      @JvmName("-deprecated_body")
      @Deprecated(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. src/go/printer/testdata/slow.golden

    						bang: &Bar{foo: []*Foo{
    							&Foo{bar: &Bar{baz: &Baz{
    								entries: map[int]interface{}{
    									0:	&Foo{},
    									-2:	&Bar{},
    									-11:	&Baz{whatever: "we need to go deeper"}}}},
    								bang: &Bar{foo: []*Foo{
    									&Foo{bar: &Bar{baz: &Baz{
    										entries: map[int]interface{}{
    											-2:	&Foo{},
    											-5:	&Bar{},
    											-7:	&Baz{whatever: "are you serious?"}}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/RecursiveDeleteOption.java

    import java.nio.file.SecureDirectoryStream;
    
    /**
     * Options for use with recursive delete methods ({@link MoreFiles#deleteRecursively} and {@link
     * MoreFiles#deleteDirectoryContents}).
     *
     * @since 21.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @J2ObjCIncompatible // java.nio.file
    @ElementTypesAreNonnullByDefault
    public enum RecursiveDeleteOption {
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. src/go/printer/testdata/slow.input

    61: &Foo{},
    71: &Bar{},
    11: &Baz{ whatever: "no, it's Go" }}}},
            bang: &Bar{foo: []*Foo{
    &Foo{bar: &Bar{ baz: &Baz{
    entries: map[int]interface{}{
    0: &Foo{},
    -2: &Bar{},
    -11: &Baz{ whatever: "we need to go deeper" }}}},
            bang: &Bar{foo: []*Foo{
    &Foo{bar: &Bar{ baz: &Baz{
    entries: map[int]interface{}{
    -2: &Foo{},
    -5: &Bar{},
    -7: &Baz{ whatever: "are you serious?" }}}},
            bang: &Bar{foo: []*Foo{}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/TestOutputStream.java

    import com.google.common.collect.ImmutableSet;
    import java.io.FilterOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Arrays;
    
    /** @author Colin Decker */
    public class TestOutputStream extends FilterOutputStream {
    
      private final ImmutableSet<TestOption> options;
      private boolean closed;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
     * </ul>
     *
     * @author Colin Decker
     */
    public class ChecksumBenchmark {
    
      // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons.
      private static final int RANDOM_SEED = new Random().nextInt();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 13 16:19:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/ChecksumHashFunction.java

    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.zip.Checksum;
    
    /**
     * {@link HashFunction} adapter for {@link Checksum} instances.
     *
     * @author Colin Decker
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class ChecksumHashFunction extends AbstractHashFunction implements Serializable {
      private final ImmutableSupplier<? extends Checksum> checksumSupplier;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.7K bytes
    - Viewed (0)
Back to top