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

Method clear

java/org/apache/catalina/connector/OutputBuffer.java:907–909  ·  view source on GitHub ↗
(Buffer buffer)

Source from the content-addressed store, hash-verified

905 }
906
907 private void clear(Buffer buffer) {
908 buffer.rewind().limit(0);
909 }
910
911 private boolean isFull(Buffer buffer) {
912 return buffer.limit() == buffer.capacity();

Callers 6

OutputBufferMethod · 0.95
recycleMethod · 0.95
setBufferSizeMethod · 0.95
resetMethod · 0.95
flushByteBufferMethod · 0.95
flushCharBufferMethod · 0.95

Calls 2

rewindMethod · 0.80
limitMethod · 0.45

Tested by

no test coverage detected