Home / Function/ testGatheringWrites() — netty Function Reference

testGatheringWrites() — netty Function Reference

Architecture documentation for the testGatheringWrites() function in AbstractCompositeByteBufTest.java from the netty codebase.

Function java Buffer Search called by 6

Entity Profile

Dependency Diagram

graph TD
  7c4602f9_51d3_c077_e8fa_496136001df4["testGatheringWrites()"]
  47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"]
  7c4602f9_51d3_c077_e8fa_496136001df4 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f
  fe268b44_5f71_9066_430c_38dc4f4dd3a0["testGatheringWritesHeap()"]
  fe268b44_5f71_9066_430c_38dc4f4dd3a0 -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  1ed11185_f390_cc4b_db19_2afa7ab37acb["testGatheringWritesDirect()"]
  1ed11185_f390_cc4b_db19_2afa7ab37acb -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  8ead64a6_8b54_f5fc_43c8_e813d47a42c7["testGatheringWritesMixes()"]
  8ead64a6_8b54_f5fc_43c8_e813d47a42c7 -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  4be5dd72_7aa2_c8a2_6b36_f9720ac52363["testGatheringWritesHeapPooled()"]
  4be5dd72_7aa2_c8a2_6b36_f9720ac52363 -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  f3eba438_31d6_cec1_89e9_99afe710766c["testGatheringWritesDirectPooled()"]
  f3eba438_31d6_cec1_89e9_99afe710766c -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  c57a2b30_fe6e_252a_dedc_705ecd9690a2["testGatheringWritesMixesPooled()"]
  c57a2b30_fe6e_252a_dedc_705ecd9690a2 -->|calls| 7c4602f9_51d3_c077_e8fa_496136001df4
  style 7c4602f9_51d3_c077_e8fa_496136001df4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 857–873

    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);

        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

Frequently Asked Questions

What does testGatheringWrites() do?
testGatheringWrites() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testGatheringWrites() defined?
testGatheringWrites() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 857.
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