MCPcopy Index your code
hub / github.com/apache/tomcat / flip

Method flip

java/org/apache/tomcat/util/buf/ByteBufferHolder.java:67–74  ·  view source on GitHub ↗

Flips the buffer if not already flipped. @return true if the buffer was flipped by this call

()

Source from the content-addressed store, hash-verified

65 * @return true if the buffer was flipped by this call
66 */
67 public boolean flip() {
68 if (flipped.compareAndSet(false, true)) {
69 buf.flip();
70 return true;
71 } else {
72 return false;
73 }
74 }
75}

Callers 15

writeMethod · 0.95
onMessageMethod · 0.80
encodeMethod · 0.80
testLeftoverBufferMethod · 0.80
testBug54602dMethod · 0.80
realReadBytesMethod · 0.80
doTestMethod · 0.80
writeMethod · 0.80

Calls

no outgoing calls

Tested by 15

onMessageMethod · 0.64
encodeMethod · 0.64
testLeftoverBufferMethod · 0.64
testBug54602dMethod · 0.64
realReadBytesMethod · 0.64
doTestMethod · 0.64
writeMethod · 0.64
testNotFoundMethod · 0.64