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

Method append

java/org/apache/tomcat/util/buf/ByteChunk.java:299–308  ·  view source on GitHub ↗

Appends a single byte to this chunk. @param b the byte to append @throws IOException if writing fails

(byte b)

Source from the content-addressed store, hash-verified

297 * @throws IOException if writing fails
298 */
299 public void append(byte b) throws IOException {
300 makeSpace(1);
301 int limit = getLimitInternal();
302
303 // couldn't make space
304 if (end >= limit) {
305 flushBuffer();
306 }
307 buff[end++] = b;
308 }
309
310
311 /**

Callers 15

testMessagesMethod · 0.95
testBug54602aMethod · 0.95
testBug54602bMethod · 0.95
testBug54602cMethod · 0.95
testLeftoverChunkMethod · 0.95
testAppendMethod · 0.95
testNonBlockingWriteMethod · 0.95

Calls 11

makeSpaceMethod · 0.95
flushBufferMethod · 0.95
getLimitInternalMethod · 0.80
remainingMethod · 0.80
positionMethod · 0.80
getLengthMethod · 0.65
realWriteBytesMethod · 0.65
getMethod · 0.65
getBytesMethod · 0.45
getStartMethod · 0.45
limitMethod · 0.45

Tested by 13

testMessagesMethod · 0.76
testBug54602aMethod · 0.76
testBug54602bMethod · 0.76
testBug54602cMethod · 0.76
testLeftoverChunkMethod · 0.76
testAppendMethod · 0.76
testNonBlockingWriteMethod · 0.76