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