- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for CharBuffer (0.08 seconds)
-
guava/src/com/google/common/io/CharStreams.java
@J2ktIncompatible @GwtIncompatible public final class CharStreams { // 2K chars (4K bytes) private static final int DEFAULT_BUF_SIZE = 0x800; /** Creates a new {@code CharBuffer} for buffering reads or writes. */ static CharBuffer createBuffer() { return CharBuffer.allocate(DEFAULT_BUF_SIZE); } private CharStreams() {} /** * Copies all characters between the {@link Readable} and {@link Appendable} objects. Does notCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 29 13:56:24 GMT 2025 - 11.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
assertEquals(-1, empty.read()); } public void testExhaust_readable() throws IOException { CharBuffer buf = CharBuffer.wrap(ASCII); assertEquals(ASCII.length(), CharStreams.exhaust(buf)); assertEquals(0, buf.remaining()); assertEquals(0, CharStreams.exhaust(buf)); CharBuffer empty = CharBuffer.wrap(""); assertEquals(0, CharStreams.exhaust(empty)); assertEquals(0, empty.remaining()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 11.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
assertEquals(-1, empty.read()); } public void testExhaust_readable() throws IOException { CharBuffer buf = CharBuffer.wrap(ASCII); assertEquals(ASCII.length(), CharStreams.exhaust(buf)); assertEquals(0, buf.remaining()); assertEquals(0, CharStreams.exhaust(buf)); CharBuffer empty = CharBuffer.wrap(""); assertEquals(0, CharStreams.exhaust(empty)); assertEquals(0, empty.remaining()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 11.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
.put(Reader.class, new StringReader("")) .put(StringReader.class, new StringReader("")) .put(Buffer.class, ByteBuffer.allocate(0)) .put(CharBuffer.class, CharBuffer.allocate(0)) .put(ByteBuffer.class, ByteBuffer.allocate(0)) .put(ShortBuffer.class, ShortBuffer.allocate(0)) .put(IntBuffer.class, IntBuffer.allocate(0))
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 20.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
.put(Reader.class, new StringReader("")) .put(StringReader.class, new StringReader("")) .put(Buffer.class, ByteBuffer.allocate(0)) .put(CharBuffer.class, CharBuffer.allocate(0)) .put(ByteBuffer.class, ByteBuffer.allocate(0)) .put(ShortBuffer.class, ShortBuffer.allocate(0)) .put(IntBuffer.class, IntBuffer.allocate(0))
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 21.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(-1, ArbitraryInstances.get(Readable.class).read(CharBuffer.allocate(1))); assertEquals(-1, ArbitraryInstances.get(Reader.class).read()); assertEquals(-1, ArbitraryInstances.get(StringReader.class).read()); assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 22.6K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
import java.io.Writer; import java.lang.reflect.Method; 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; import java.nio.charset.Charset; import java.util.ArrayList;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 17.4K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(-1, ArbitraryInstances.get(Readable.class).read(CharBuffer.allocate(1))); assertEquals(-1, ArbitraryInstances.get(Reader.class).read()); assertEquals(-1, ArbitraryInstances.get(StringReader.class).read()); assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity()); assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 22.2K bytes - Click Count (0)