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

Method writeBytes

java/org/apache/catalina/connector/OutputBuffer.java:374–389  ·  view source on GitHub ↗
(byte[] b, int off, int len)

Source from the content-addressed store, hash-verified

372
373
374 private void writeBytes(byte[] b, int off, int len) throws IOException {
375
376 if (closed) {
377 throw new IOException(sm.getString("outputBuffer.closed"));
378 }
379
380 append(b, off, len);
381 updateBytesWritten(len);
382
383 // if called from within flush(), then immediately flush
384 // remaining bytes
385 if (doFlush) {
386 flushByteBuffer();
387 }
388
389 }
390
391
392 private void writeBytes(ByteBuffer from) throws IOException {

Callers 2

writeMethod · 0.95
testWriteBytesMethod · 0.45

Calls 5

appendMethod · 0.95
updateBytesWrittenMethod · 0.95
flushByteBufferMethod · 0.95
remainingMethod · 0.80
getStringMethod · 0.65

Tested by 1

testWriteBytesMethod · 0.36