Home / Function/ addComponents0() — netty Function Reference

addComponents0() — netty Function Reference

Architecture documentation for the addComponents0() function in CompositeByteBuf.java from the netty codebase.

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  52131157_ab49_bbc0_4b2f_f75786fd3e51["addComponents0()"]
  6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6["CompositeByteBuf"]
  52131157_ab49_bbc0_4b2f_f75786fd3e51 -->|defined in| 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6
  e9920c4e_d91d_be1d_34e0_9c0ddc060f5d["CompositeByteBuf()"]
  e9920c4e_d91d_be1d_34e0_9c0ddc060f5d -->|calls| 52131157_ab49_bbc0_4b2f_f75786fd3e51
  fa74dd51_3f34_2d56_ed8e_41955da7b338["checkComponentIndex()"]
  52131157_ab49_bbc0_4b2f_f75786fd3e51 -->|calls| fa74dd51_3f34_2d56_ed8e_41955da7b338
  59aa513a_9196_9707_e719_00f253da08eb["addComponent0()"]
  52131157_ab49_bbc0_4b2f_f75786fd3e51 -->|calls| 59aa513a_9196_9707_e719_00f253da08eb
  style 52131157_ab49_bbc0_4b2f_f75786fd3e51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 422–441

    private <T> int addComponents0(boolean increaseWriterIndex, int cIndex,
            ByteWrapper<T> wrapper, T[] buffers, int offset) {
        checkComponentIndex(cIndex);

        // No need for consolidation
        for (int i = offset, len = buffers.length; i < len; i++) {
            T b = buffers[i];
            if (b == null) {
                break;
            }
            if (!wrapper.isEmpty(b)) {
                cIndex = addComponent0(increaseWriterIndex, cIndex, wrapper.wrap(b)) + 1;
                int size = componentCount;
                if (cIndex > size) {
                    cIndex = size;
                }
            }
        }
        return cIndex;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does addComponents0() do?
addComponents0() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java.
Where is addComponents0() defined?
addComponents0() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 422.
What does addComponents0() call?
addComponents0() calls 2 function(s): addComponent0, checkComponentIndex.
What calls addComponents0()?
addComponents0() is called by 1 function(s): CompositeByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free