testNotOverflowWhileUseConstructorWithOffset() — netty Function Reference
Architecture documentation for the testNotOverflowWhileUseConstructorWithOffset() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3280e55a_79fb_093a_a430_d85c2d15928c["testNotOverflowWhileUseConstructorWithOffset()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] 3280e55a_79fb_093a_a430_d85c2d15928c -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f 2b9d825e_3872_7ca7_6fa2_43af2b5c9ac8["CompositeByteBuf()"] 3280e55a_79fb_093a_a430_d85c2d15928c -->|calls| 2b9d825e_3872_7ca7_6fa2_43af2b5c9ac8 style 3280e55a_79fb_093a_a430_d85c2d15928c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1742–1757
@Test
public void testNotOverflowWhileUseConstructorWithOffset() {
int capacity = 1024 * 1024; // 1MB
final ByteBuf buffer = Unpooled.buffer(capacity).writeZero(capacity);
final List<ByteBuf> buffers = new ArrayList<ByteBuf>();
for (long i = 0; i <= Integer.MAX_VALUE; i += capacity) {
buffers.add(buffer.duplicate());
}
// Add one more
buffers.add(buffer.duplicate());
ByteBuf[] bufferArray = buffers.toArray(new ByteBuf[0]);
CompositeByteBuf compositeByteBuf =
new CompositeByteBuf(ALLOC, false, Integer.MAX_VALUE, bufferArray, bufferArray.length - 1);
compositeByteBuf.release();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testNotOverflowWhileUseConstructorWithOffset() do?
testNotOverflowWhileUseConstructorWithOffset() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testNotOverflowWhileUseConstructorWithOffset() defined?
testNotOverflowWhileUseConstructorWithOffset() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1742.
What does testNotOverflowWhileUseConstructorWithOffset() call?
testNotOverflowWhileUseConstructorWithOffset() calls 1 function(s): CompositeByteBuf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free