Home / Function/ expandArray() — netty Function Reference

expandArray() — netty Function Reference

Architecture documentation for the expandArray() function in CodecOutputList.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cc7605e3_5eb4_3474_a434_165576d90234["expandArray()"]
  6ac16422_9a27_c4b7_2cbb_da7b639a19f5["CodecOutputList"]
  cc7605e3_5eb4_3474_a434_165576d90234 -->|defined in| 6ac16422_9a27_c4b7_2cbb_da7b639a19f5
  c2d77e60_10a0_d3f8_12aa_831ad0030005["add()"]
  c2d77e60_10a0_d3f8_12aa_831ad0030005 -->|calls| cc7605e3_5eb4_3474_a434_165576d90234
  style cc7605e3_5eb4_3474_a434_165576d90234 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/CodecOutputList.java lines 223–235

    private void expandArray() {
        // double capacity
        int newCapacity = array.length << 1;

        if (newCapacity < 0) {
            throw new OutOfMemoryError();
        }

        Object[] newArray = new Object[newCapacity];
        System.arraycopy(array, 0, newArray, 0, array.length);

        array = newArray;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does expandArray() do?
expandArray() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/CodecOutputList.java.
Where is expandArray() defined?
expandArray() is defined in codec-base/src/main/java/io/netty/handler/codec/CodecOutputList.java at line 223.
What calls expandArray()?
expandArray() is called by 1 function(s): add.

Analyze Your Own Codebase

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

Try Supermodel Free