Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 149 for buffers (0.82 sec)

  1. android/guava/src/com/google/common/io/FileBackedOutputStream.java

        }
      }
    
      /**
       * Calls {@link #close} if not already closed, and then resets this object back to its initial
       * state, for reuse. If data was buffered to a file, it will be deleted.
       *
       * @throws IOException if an I/O error occurred while deleting the file buffer
       */
      public synchronized void reset() throws IOException {
        try {
          close();
        } finally {
          if (memory == null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          StringBuilder builder = new StringBuilder();
          CharBuffer buffer = CharBuffer.allocate(100);
          while (reader.read(buffer) != -1) {
            Java8Compatibility.flip(buffer);
            builder.append(buffer);
            Java8Compatibility.clear(buffer);
          }
          return builder.toString();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/Stats.java

            "Expected at least Stats.BYTES = %s remaining , got %s",
            BYTES,
            buffer.remaining());
        return new Stats(
            buffer.getLong(),
            buffer.getDouble(),
            buffer.getDouble(),
            buffer.getDouble(),
            buffer.getDouble());
      }
    
      private static final long serialVersionUID = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

            CharBuffer buf = CharStreams.createBuffer();
            long total = 0;
            while (from.read(buf) != -1) {
              ((Buffer) buf).flip();
              to.append(buf);
              total += buf.remaining();
              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
          long copy(Readable from, Appendable to) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:59:54 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/SettableFuture.java

     * utility methods, or {@link ListenableFutureTask}. Those APIs have less opportunity for developer
     * error. If your needs are more complex than {@code SettableFuture} supports, use {@link
     * AbstractFuture}, which offers an extensible version of the API.
     *
     * @author Sven Mawson
     * @since 9.0 (in 1.0 as {@code ValueFuture})
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EvictingQueue.java

     * attempting to add new elements onto the queue and it is full. This queue orders elements FIFO
     * (first-in-first-out). This data structure is logically equivalent to a circular buffer (i.e.,
     * cyclic buffer or ring buffer).
     *
     * <p>An evicting queue must be configured with a maximum size. Each time an element is added to a
     * full queue, the queue automatically removes its head element. This is different from conventional
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:52:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /**
       * Not supported. Use {@link #naturalOrder}, which offers better type-safety, instead. This method
       * exists only to hide {@link ImmutableMultiset#builder} from consumers of {@code
       * ImmutableSortedMultiset}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableSortedMultiset#naturalOrder}, which offers better type-safety.
       */
      @DoNotCall("Use naturalOrder.")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.io.Writer;
    import java.lang.reflect.AnnotatedElement;
    import java.lang.reflect.GenericDeclaration;
    import java.lang.reflect.Type;
    import java.math.BigDecimal;
    import java.math.BigInteger;
    import java.nio.Buffer;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.DoubleBuffer;
    import java.nio.FloatBuffer;
    import java.nio.IntBuffer;
    import java.nio.LongBuffer;
    import java.nio.ShortBuffer;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.Type;
    import java.math.BigDecimal;
    import java.math.BigInteger;
    import java.nio.Buffer;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.DoubleBuffer;
    import java.nio.FloatBuffer;
    import java.nio.IntBuffer;
    import java.nio.LongBuffer;
    import java.nio.ShortBuffer;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() {
        byte[] buffer = MANY_VALUES_STATS_VARARGS.toByteArray();
        byte[] tooLongByteArray =
            ByteBuffer.allocate(buffer.length + 2)
                .order(ByteOrder.LITTLE_ENDIAN)
                .put(buffer)
                .putChar('.')
                .array();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.4K bytes
    - Viewed (0)
Back to top