setup() — netty Function Reference
Architecture documentation for the setup() function in ByteBufZeroingBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d2a15544_ca8e_59b2_ef30_c44bf27824dd["setup()"] c05369af_119c_c7eb_6d00_b6edefca7975["ByteBufZeroingBenchmark"] d2a15544_ca8e_59b2_ef30_c44bf27824dd -->|defined in| c05369af_119c_c7eb_6d00_b6edefca7975 style d2a15544_ca8e_59b2_ef30_c44bf27824dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/ByteBufZeroingBenchmark.java lines 80–92
@Setup
public void setup() {
System.setProperty("io.netty.buffer.checkAccessible", checkAccessible);
System.setProperty("io.netty.buffer.checkBounds", checkBounds);
ByteBufAllocator allocator = pooled? PooledByteBufAllocator.DEFAULT : UnpooledByteBufAllocator.DEFAULT;
int capacityRequired = startOffset + bytes;
offset = 0;
buffer = direct? alignedDirectAllocation(allocator, capacityRequired, 8) :
allocator.heapBuffer(capacityRequired, capacityRequired);
if (startOffset > 0) {
offset += startOffset;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/ByteBufZeroingBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/buffer/ByteBufZeroingBenchmark.java at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free