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

Method getBytesWritten

java/org/apache/coyote/Response.java:848–853  ·  view source on GitHub ↗

Bytes written to socket - i.e. after compression, chunking, etc. @param flush Should any remaining bytes be flushed before returning the total? If false bytes remaining in the buffer will not be included in the returned value @return The total number of bytes written to th

(boolean flush)

Source from the content-addressed store, hash-verified

846 * @return The total number of bytes written to the socket for this response
847 */
848 public long getBytesWritten(boolean flush) {
849 if (flush) {
850 action(ActionCode.CLIENT_FLUSH, this);
851 }
852 return outputBuffer.getBytesWritten();
853 }
854
855 /*
856 * State for non-blocking output is maintained here as it is the one point easily reachable from the

Callers

nothing calls this directly

Calls 2

actionMethod · 0.95
getBytesWrittenMethod · 0.65

Tested by

no test coverage detected