Home / Function/ testGatheringWritesSingleBuf() — netty Function Reference

testGatheringWritesSingleBuf() — netty Function Reference

Architecture documentation for the testGatheringWritesSingleBuf() function in FixedCompositeByteBufTest.java from the netty codebase.

Function java Buffer Search called by 2

Entity Profile

Dependency Diagram

graph TD
  225a01d8_6da3_5697_0d97_60bb8c14b62a["testGatheringWritesSingleBuf()"]
  0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"]
  225a01d8_6da3_5697_0d97_60bb8c14b62a -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016
  2ca309a8_7389_879e_d1bd_52bd1b94931b["testGatheringWritesSingleHeap()"]
  2ca309a8_7389_879e_d1bd_52bd1b94931b -->|calls| 225a01d8_6da3_5697_0d97_60bb8c14b62a
  3201b5fd_8bc2_1f93_e721_49a6d4518f2c["testGatheringWritesSingleDirect()"]
  3201b5fd_8bc2_1f93_e721_49a6d4518f2c -->|calls| 225a01d8_6da3_5697_0d97_60bb8c14b62a
  style 225a01d8_6da3_5697_0d97_60bb8c14b62a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 359–371

    private static void testGatheringWritesSingleBuf(ByteBuf buf1) throws Exception {
        ByteBuf buf = newBuffer(buf1.writeBytes(new byte[]{1, 2, 3, 4}));
        buf.readerIndex(1);

        AbstractByteBufTest.TestGatheringByteChannel channel = new AbstractByteBufTest.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 testGatheringWritesSingleBuf() do?
testGatheringWritesSingleBuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is testGatheringWritesSingleBuf() defined?
testGatheringWritesSingleBuf() is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 359.
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