MCPcopy Create free account
hub / github.com/antlr/codebuff / countBySkipping

Method countBySkipping

corpus/java/training/guava/io/CharSource.java:171–178  ·  view source on GitHub ↗
(Reader reader)

Source from the content-addressed store, hash-verified

169 }
170
171 private long countBySkipping(Reader reader) throws IOException {
172 long count = 0;
173 long read;
174 while ((read = reader.skip(Long.MAX_VALUE)) != 0) {
175 count += read;
176 }
177 return count;
178 }
179
180 /**
181 * Appends the contents of this source to the given {@link Appendable} (such as a {@link Writer}).

Callers 1

lengthMethod · 0.95

Calls 1

skipMethod · 0.45

Tested by

no test coverage detected