- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for CharBuffer (0.08 sec)
-
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
builder.append(buf, 0, read); } assertEquals(expected, builder.toString()); assertFullyRead(reader); // read all to one CharBuffer reader = new CharSequenceReader(charSequence); CharBuffer buf2 = CharBuffer.allocate(expected.length()); assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2)); Java8Compatibility.flip(buf2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ReaderInputStream.java
return 0; // Not called. } } } } /** Returns a new CharBuffer identical to buf, except twice the capacity. */ private static CharBuffer grow(CharBuffer buf) { char[] copy = Arrays.copyOf(buf.array(), buf.capacity() * 2); CharBuffer bigger = CharBuffer.wrap(copy); Java8Compatibility.position(bigger, buf.position()); Java8Compatibility.limit(bigger, buf.limit());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 9.3K bytes - Viewed (0) -
guava/src/com/google/common/io/ReaderInputStream.java
return 0; // Not called. } } } } /** Returns a new CharBuffer identical to buf, except twice the capacity. */ private static CharBuffer grow(CharBuffer buf) { char[] copy = Arrays.copyOf(buf.array(), buf.capacity() * 2); CharBuffer bigger = CharBuffer.wrap(copy); Java8Compatibility.position(bigger, buf.position()); Java8Compatibility.limit(bigger, buf.limit());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineReader.java
import com.google.common.annotations.J2ktIncompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.io.IOException; import java.io.Reader; import java.nio.CharBuffer; import java.util.ArrayDeque; import java.util.Queue; import javax.annotation.CheckForNull; /** * A class for reading lines of text. Provides the same functionality as {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 3.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
import com.google.caliper.Param; import com.google.caliper.api.VmOptions; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.nio.Buffer; import java.nio.CharBuffer; import java.util.Random; /** * Benchmarks for {@link CharStreams#copy}. * * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
import com.google.caliper.Param; import com.google.caliper.api.VmOptions; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.nio.Buffer; import java.nio.CharBuffer; import java.util.Random; /** * Benchmarks for {@link CharStreams#copy}. * * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
import com.google.common.collect.Lists; import java.io.BufferedReader; import java.io.FilterReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.nio.CharBuffer; import java.util.Arrays; import java.util.List; /** * Unit tests for {@link LineBuffer} and {@link LineReader}. * * @author Chris Nokleberg */ @AndroidIncompatible // occasionally very slow
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSequenceReader.java
import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.IOException; import java.io.Reader; import java.nio.CharBuffer; import javax.annotation.CheckForNull; /** * A {@link Reader} that reads the characters in a {@link CharSequence}. Like {@code StringReader}, * but works with any {@link CharSequence}. * * @author Colin Decker
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
import com.google.common.collect.Lists; import java.io.BufferedReader; import java.io.FilterReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.nio.CharBuffer; import java.util.Arrays; import java.util.List; /** * Unit tests for {@link LineBuffer} and {@link LineReader}. * * @author Chris Nokleberg */ @AndroidIncompatible // occasionally very slow
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSequenceReader.java
import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.IOException; import java.io.Reader; import java.nio.CharBuffer; import javax.annotation.CheckForNull; /** * A {@link Reader} that reads the characters in a {@link CharSequence}. Like {@code StringReader}, * but works with any {@link CharSequence}. * * @author Colin Decker
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.5K bytes - Viewed (0)