testRemoveComponents() — netty Function Reference
Architecture documentation for the testRemoveComponents() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b5288afc_2a89_07c4_616a_23187101e1fb["testRemoveComponents()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] b5288afc_2a89_07c4_616a_23187101e1fb -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f style b5288afc_2a89_07c4_616a_23187101e1fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 810–822
@Test
public void testRemoveComponents() {
CompositeByteBuf buf = compositeBuffer();
for (int i = 0; i < 10; i++) {
buf.addComponent(wrappedBuffer(new byte[]{1, 2}));
}
assertEquals(10, buf.numComponents());
assertEquals(20, buf.capacity());
buf.removeComponents(4, 3);
assertEquals(7, buf.numComponents());
assertEquals(14, buf.capacity());
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testRemoveComponents() do?
testRemoveComponents() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testRemoveComponents() defined?
testRemoveComponents() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 810.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free