setup() — netty Function Reference
Architecture documentation for the setup() function in AbstractByteBufGetCharSequenceBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD eb4e0f35_65db_209a_36bb_daa2cd1fee25["setup()"] 3c22d637_60c0_7575_bb26_6df4711888f9["AbstractByteBufGetCharSequenceBenchmark"] eb4e0f35_65db_209a_36bb_daa2cd1fee25 -->|defined in| 3c22d637_60c0_7575_bb26_6df4711888f9 style eb4e0f35_65db_209a_36bb_daa2cd1fee25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/AbstractByteBufGetCharSequenceBenchmark.java lines 128–137
@Setup
public void setup() {
byte[] bytes = new byte[size + 2];
Arrays.fill(bytes, (byte) 'a');
str = new String(bytes, 0, size);
// 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
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/AbstractByteBufGetCharSequenceBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/buffer/AbstractByteBufGetCharSequenceBenchmark.java at line 128.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free