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

Method countBySkipping

output/java_guava/1.4.17/CharSource.java:177–184  ·  view source on GitHub ↗
(Reader reader)

Source from the content-addressed store, hash-verified

175 }
176
177 private long countBySkipping(Reader reader) throws IOException {
178 long count = 0;
179 long read;
180 while ((read = reader.skip(Long.MAX_VALUE)) != 0) {
181 count += read;
182 }
183 return count;
184 }
185
186 /**
187 * 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