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

Method swallowInput

java/org/apache/tomcat/websocket/WsFrameBase.java:679–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

677
678
679 private boolean swallowInput() {
680 long toSkip = Math.min(payloadLength - payloadWritten, inputBuffer.remaining());
681 inputBuffer.position(inputBuffer.position() + (int) toSkip);
682 payloadWritten += toSkip;
683 if (payloadWritten == payloadLength) {
684 if (continuationExpected) {
685 newFrame();
686 } else {
687 newMessage();
688 }
689 return true;
690 } else {
691 return false;
692 }
693 }
694
695
696 /**

Callers 1

processDataMethod · 0.95

Calls 5

newFrameMethod · 0.95
newMessageMethod · 0.95
remainingMethod · 0.80
positionMethod · 0.80
minMethod · 0.45

Tested by

no test coverage detected