MCPcopy Index your code
hub / github.com/apache/groovy / skip

Method skip

src/main/java/groovy/io/LineColumnReader.java:176–183  ·  view source on GitHub ↗

Skips characters. @param toSkip the number of characters to skip @return The number of characters actually skipped

(long toSkip)

Source from the content-addressed store, hash-verified

174 * @return The number of characters actually skipped
175 */
176 @Override
177 public long skip(long toSkip) throws IOException {
178 for (long i = 0; i < toSkip; i++) {
179 int intRead = read();
180 if (intRead == -1) return i;
181 }
182 return toSkip;
183 }
184
185 /**
186 * Reads characters into an array.

Callers 7

interceptTestMethodMethod · 0.45
limitMethod · 0.45
getLinesInSourceMethod · 0.45
testSkipMethod · 0.45
testSkipBeyondEndMethod · 0.45
testSkipAtEndMethod · 0.45

Calls 1

readMethod · 0.95

Tested by 5

interceptTestMethodMethod · 0.36
testSkipMethod · 0.36
testSkipBeyondEndMethod · 0.36
testSkipAtEndMethod · 0.36