testGatheringWritesSingleBuf() — netty Function Reference
Architecture documentation for the testGatheringWritesSingleBuf() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 000cc0a7_0fd8_dcee_c045_531caf70a200["testGatheringWritesSingleBuf()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] 000cc0a7_0fd8_dcee_c045_531caf70a200 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f 95bdd3f6_4633_1703_5c98_378c38e150e6["testGatheringWritesSingleHeap()"] 95bdd3f6_4633_1703_5c98_378c38e150e6 -->|calls| 000cc0a7_0fd8_dcee_c045_531caf70a200 8b28c8b7_62cf_e115_19c1_936caeab9e55["testGatheringWritesSingleDirect()"] 8b28c8b7_62cf_e115_19c1_936caeab9e55 -->|calls| 000cc0a7_0fd8_dcee_c045_531caf70a200 style 000cc0a7_0fd8_dcee_c045_531caf70a200 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 986–1000
private static void testGatheringWritesSingleBuf(ByteBuf buf1) throws Exception {
CompositeByteBuf buf = compositeBuffer();
buf.addComponent(buf1.writeBytes(new byte[]{1, 2, 3, 4}));
buf.writerIndex(3);
buf.readerIndex(1);
TestGatheringByteChannel channel = new TestGatheringByteChannel();
buf.readBytes(channel, 2);
byte[] data = new byte[2];
buf.getBytes(1, data);
assertArrayEquals(data, channel.writtenBytes());
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGatheringWritesSingleBuf() do?
testGatheringWritesSingleBuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testGatheringWritesSingleBuf() defined?
testGatheringWritesSingleBuf() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 986.
What calls testGatheringWritesSingleBuf()?
testGatheringWritesSingleBuf() is called by 2 function(s): testGatheringWritesSingleDirect, testGatheringWritesSingleHeap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free