- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for sizeIfKnown (0.05 seconds)
-
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
// come close. USING_DECODER_WITH_SIZE_HINT { @Override String read(ByteSource byteSource, Charset cs) throws IOException { Optional<Long> size = byteSource.sizeIfKnown(); // if we know the size and it fits in an int if (size.isPresent() && size.get().longValue() == size.get().intValue()) { // otherwise try to presize a StringBuilderCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.2K bytes - Click Count (0)