Home / Function/ writeBytesMultiple() — netty Function Reference

writeBytesMultiple() — netty Function Reference

Architecture documentation for the writeBytesMultiple() function in AbstractKQueueStreamChannel.java from the netty codebase.

Function java Buffer Search calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  9c9d9b4b_f693_63b7_ac81_c2fc0c01e420["writeBytesMultiple()"]
  d154050d_32bb_fde7_fa64_5c82411c48d6["AbstractKQueueStreamChannel"]
  9c9d9b4b_f693_63b7_ac81_c2fc0c01e420 -->|defined in| d154050d_32bb_fde7_fa64_5c82411c48d6
  ffda4400_32a8_bde7_1ee3_64222fbdad60["writeBytes()"]
  ffda4400_32a8_bde7_1ee3_64222fbdad60 -->|calls| 9c9d9b4b_f693_63b7_ac81_c2fc0c01e420
  5e722992_098a_76fd_00b1_7e52bc6b14a4["doWriteMultiple()"]
  5e722992_098a_76fd_00b1_7e52bc6b14a4 -->|calls| 9c9d9b4b_f693_63b7_ac81_c2fc0c01e420
  b80a7867_955d_4885_8e07_5d2861489576["adjustMaxBytesPerGatheringWrite()"]
  9c9d9b4b_f693_63b7_ac81_c2fc0c01e420 -->|calls| b80a7867_955d_4885_8e07_5d2861489576
  style 9c9d9b4b_f693_63b7_ac81_c2fc0c01e420 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java lines 148–161

    private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException {
        final long expectedWrittenBytes = array.size();
        assert expectedWrittenBytes != 0;
        final int cnt = array.count();
        assert cnt != 0;

        final long localWrittenBytes = socket.writevAddresses(array.memoryAddress(0), cnt);
        if (localWrittenBytes > 0) {
            adjustMaxBytesPerGatheringWrite(expectedWrittenBytes, localWrittenBytes, array.maxBytes());
            in.removeBytes(localWrittenBytes);
            return 1;
        }
        return WRITE_STATUS_SNDBUF_FULL;
    }

Domain

Subdomains

Frequently Asked Questions

What does writeBytesMultiple() do?
writeBytesMultiple() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java.
Where is writeBytesMultiple() defined?
writeBytesMultiple() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java at line 148.
What does writeBytesMultiple() call?
writeBytesMultiple() calls 1 function(s): adjustMaxBytesPerGatheringWrite.
What calls writeBytesMultiple()?
writeBytesMultiple() is called by 2 function(s): doWriteMultiple, writeBytes.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free