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

Method setLength

java/org/apache/catalina/tribes/io/XByteBuffer.java:136–141  ·  view source on GitHub ↗

Sets the current length of the data in the buffer. @param size the new length

(int size)

Source from the content-addressed store, hash-verified

134 * @param size the new length
135 */
136 public void setLength(int size) {
137 if (size > buf.length) {
138 throw new ArrayIndexOutOfBoundsException(sm.getString("xByteBuffer.size.larger.buffer"));
139 }
140 bufSize = size;
141 }
142
143 /**
144 * Trims the specified number of bytes from the end of the buffer.

Callers 15

extractDataPackageMethod · 0.95
testMillisHandlingMethod · 0.80
canonicalURIMethod · 0.80
parseELMethod · 0.80
parseTokenMethod · 0.80
getReportMethod · 0.80
getBufferMethod · 0.80
visitMethod · 0.80
evaluateAttributeMethod · 0.80
getTokenMethod · 0.80

Calls 1

getStringMethod · 0.65

Tested by 1

testMillisHandlingMethod · 0.64