Home / Function/ expand() — netty Function Reference

expand() — netty Function Reference

Architecture documentation for the expand() function in AppendableCharSequenceBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3e478c86_6ed0_8712_9805_c9b9733d3636["expand()"]
  a2f3b91a_9f96_cb74_48f7_69352371a5b0["AppendableCharSequenceBenchmark"]
  3e478c86_6ed0_8712_9805_c9b9733d3636 -->|defined in| a2f3b91a_9f96_cb74_48f7_69352371a5b0
  bd8fc4fd_968b_4548_5e93_b559925bd826["appendCheckBeforeCopy()"]
  bd8fc4fd_968b_4548_5e93_b559925bd826 -->|calls| 3e478c86_6ed0_8712_9805_c9b9733d3636
  9b423d87_ba24_dd04_87b0_9b3de906b5d0["appendCatchExceptionAfter()"]
  9b423d87_ba24_dd04_87b0_9b3de906b5d0 -->|calls| 3e478c86_6ed0_8712_9805_c9b9733d3636
  style 3e478c86_6ed0_8712_9805_c9b9733d3636 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbenchmark/common/AppendableCharSequenceBenchmark.java lines 77–86

    private void expand() {
        char[] old = chars;
        // double it
        int len = old.length << 1;
        if (len < 0) {
            throw new IllegalStateException();
        }
        chars = new char[len];
        System.arraycopy(old, 0, chars, 0, old.length);
    }

Domain

Subdomains

Frequently Asked Questions

What does expand() do?
expand() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbenchmark/common/AppendableCharSequenceBenchmark.java.
Where is expand() defined?
expand() is defined in microbench/src/main/java/io/netty/microbenchmark/common/AppendableCharSequenceBenchmark.java at line 77.
What calls expand()?
expand() is called by 2 function(s): appendCatchExceptionAfter, appendCheckBeforeCopy.

Analyze Your Own Codebase

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

Try Supermodel Free