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

Method skip

output/java_guava/1.4.18/MultiInputStream.java:110–123  ·  view source on GitHub ↗
(long n)

Source from the content-addressed store, hash-verified

108 }
109
110 @Override
111 public long skip(long n) throws IOException {
112 if (in == null || n <= 0) {
113 return 0;
114 }
115 long result = in.skip(n);
116 if (result != 0) {
117 return result;
118 }
119 if (read() == -1) {
120 return 0;
121 }
122 return 1 + in.skip(n - 1);
123 }
124}

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected