Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bb3a0992_1637_2999_3e83_409883a712d7["setup()"]
  1971f575_0c0c_3a2d_0b8f_0263873ad4b3["SwappedByteBufBenchmark"]
  bb3a0992_1637_2999_3e83_409883a712d7 -->|defined in| 1971f575_0c0c_3a2d_0b8f_0263873ad4b3
  style bb3a0992_1637_2999_3e83_409883a712d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/SwappedByteBufBenchmark.java lines 39–46

    @Setup
    public void setup() {
        swappedByteBuf = new SwappedByteBuf(Unpooled.directBuffer(8));
        unsafeSwappedByteBuf = Unpooled.directBuffer(8).order(ByteOrder.LITTLE_ENDIAN);
        if (unsafeSwappedByteBuf.getClass().equals(SwappedByteBuf.class)) {
            throw new IllegalStateException("Should not use " + SwappedByteBuf.class.getSimpleName());
        }
    }

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

Analyze Your Own Codebase

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

Try Supermodel Free