testGatheringWrites() — netty Function Reference
Architecture documentation for the testGatheringWrites() function in FixedCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1011e775_7f1e_2a13_9326_c9c23bfe8b37["testGatheringWrites()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"] 1011e775_7f1e_2a13_9326_c9c23bfe8b37 -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016 6ee28866_8992_2483_ecef_483ae2b7b0e3["testGatheringWritesHeap()"] 6ee28866_8992_2483_ecef_483ae2b7b0e3 -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 cb5bcd14_fb9f_9d11_e4c6_3871301be551["testGatheringWritesDirect()"] cb5bcd14_fb9f_9d11_e4c6_3871301be551 -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 afecdc68_b762_8f5a_2b8b_933c21c546b4["testGatheringWritesMixes()"] afecdc68_b762_8f5a_2b8b_933c21c546b4 -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 cb814238_cb73_b388_a92d_fbb9201b23c0["testGatheringWritesHeapPooled()"] cb814238_cb73_b388_a92d_fbb9201b23c0 -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 3ba866f1_8c39_4db5_d57d_081f30e95afa["testGatheringWritesDirectPooled()"] 3ba866f1_8c39_4db5_d57d_081f30e95afa -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 c9e0e22c_6942_f2ac_40f0_41c09b450354["testGatheringWritesMixesPooled()"] c9e0e22c_6942_f2ac_40f0_41c09b450354 -->|calls| 1011e775_7f1e_2a13_9326_c9c23bfe8b37 style 1011e775_7f1e_2a13_9326_c9c23bfe8b37 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 283–298
private static void testGatheringWrites(ByteBuf buf1, ByteBuf buf2) throws Exception {
CompositeByteBuf buf = compositeBuffer();
buf.addComponent(buf1.writeBytes(new byte[]{1, 2}));
buf.addComponent(buf2.writeBytes(new byte[]{1, 2}));
buf.writerIndex(3);
buf.readerIndex(1);
AbstractByteBufTest.TestGatheringByteChannel channel = new AbstractByteBufTest.TestGatheringByteChannel();
buf.readBytes(channel, 2);
byte[] data = new byte[2];
buf.getBytes(1, data);
buf.release();
assertArrayEquals(data, channel.writtenBytes());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does testGatheringWrites() do?
testGatheringWrites() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is testGatheringWrites() defined?
testGatheringWrites() is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 283.
What calls testGatheringWrites()?
testGatheringWrites() is called by 6 function(s): testGatheringWritesDirect, testGatheringWritesDirectPooled, testGatheringWritesHeap, testGatheringWritesHeapPooled, testGatheringWritesMixes, testGatheringWritesMixesPooled.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free