MCPcopy Create free account
hub / github.com/apache/tomcat / skipByte

Method skipByte

java/org/apache/tomcat/util/http/parser/Cookie.java:182–193  ·  view source on GitHub ↗
(ByteBuffer bb, byte target)

Source from the content-addressed store, hash-verified

180
181
182 private static SkipResult skipByte(ByteBuffer bb, byte target) {
183
184 if (!bb.hasRemaining()) {
185 return SkipResult.EOF;
186 }
187 if (bb.get() == target) {
188 return SkipResult.FOUND;
189 }
190
191 bb.rewind();
192 return SkipResult.NOT_FOUND;
193 }
194
195
196 /**

Callers 1

parseCookieMethod · 0.95

Calls 3

hasRemainingMethod · 0.80
rewindMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected