Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1a0f75cb_4cee_dd05_3a60_5cc0c0e22902["setup()"]
  0cd74505_43a2_f13d_0adf_1a6a92869999["HeapByteBufBenchmark"]
  1a0f75cb_4cee_dd05_3a60_5cc0c0e22902 -->|defined in| 0cd74505_43a2_f13d_0adf_1a6a92869999
  style 1a0f75cb_4cee_dd05_3a60_5cc0c0e22902 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/HeapByteBufBenchmark.java lines 47–54

    @Setup
    public void setup() throws Exception {
        System.setProperty("io.netty.buffer.bytebuf.checkBounds", checkBounds);
        unsafeBuffer = newBuffer("io.netty.buffer.UnpooledUnsafeHeapByteBuf");
        buffer = newBuffer("io.netty.buffer.UnpooledHeapByteBuf");
        unsafeBuffer.writeLong(1L);
        buffer.writeLong(1L);
    }

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/microbench/buffer/HeapByteBufBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbench/buffer/HeapByteBufBenchmark.java at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free