Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

Architecture documentation for the setup() function in ByteBufUtilDecodeStringBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  47e67797_8bfd_3c51_273f_cf1cac3b63b1["setup()"]
  eb34c265_3af6_0692_7076_c5e6ce28d473["ByteBufUtilDecodeStringBenchmark"]
  47e67797_8bfd_3c51_273f_cf1cac3b63b1 -->|defined in| eb34c265_3af6_0692_7076_c5e6ce28d473
  style 47e67797_8bfd_3c51_273f_cf1cac3b63b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/buffer/ByteBufUtilDecodeStringBenchmark.java lines 102–110

    @Setup
    public void setup() {
        byte[] bytes = new byte[size + 2];
        Arrays.fill(bytes, (byte) 'a');

        // Use an offset to not allow any optimizations because we use the exact passed in byte[] for heap buffers.
        buffer = bufferType.newBuffer(bytes, size);
        charset = Charset.forName(charsetName);
    }

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/ByteBufUtilDecodeStringBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/buffer/ByteBufUtilDecodeStringBenchmark.java at line 102.

Analyze Your Own Codebase

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

Try Supermodel Free