Home / Function/ String() — netty Function Reference

String() — netty Function Reference

Architecture documentation for the String() function in PooledByteBufAllocator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  da73c8f5_b1b4_13f3_3fa5_9a628a73e402["String()"]
  f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a["PooledByteBufAllocator"]
  da73c8f5_b1b4_13f3_3fa5_9a628a73e402 -->|defined in| f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a
  style da73c8f5_b1b4_13f3_3fa5_9a628a73e402 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java lines 778–802

    public String dumpStats() {
        int heapArenasLen = heapArenas == null ? 0 : heapArenas.length;
        StringBuilder buf = new StringBuilder(512)
                .append(heapArenasLen)
                .append(" heap arena(s):")
                .append(StringUtil.NEWLINE);
        if (heapArenasLen > 0) {
            for (PoolArena<byte[]> a: heapArenas) {
                buf.append(a);
            }
        }

        int directArenasLen = directArenas == null ? 0 : directArenas.length;

        buf.append(directArenasLen)
           .append(" direct arena(s):")
           .append(StringUtil.NEWLINE);
        if (directArenasLen > 0) {
            for (PoolArena<ByteBuffer> a: directArenas) {
                buf.append(a);
            }
        }

        return buf.toString();
    }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java.
Where is String() defined?
String() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java at line 778.

Analyze Your Own Codebase

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

Try Supermodel Free