setBytesConstantOffset() — netty Function Reference
Architecture documentation for the setBytesConstantOffset() function in ByteBufAccessBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 35f97240_b668_14ae_44c3_3a8a1b728077["setBytesConstantOffset()"] bbe8e86b_057f_5aa0_71ed_6d8276f6f6f8["ByteBufAccessBenchmark"] 35f97240_b668_14ae_44c3_3a8a1b728077 -->|defined in| bbe8e86b_057f_5aa0_71ed_6d8276f6f6f8 style 35f97240_b668_14ae_44c3_3a8a1b728077 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java lines 267–279
@Benchmark
public void setBytesConstantOffset(Blackhole bh) {
ByteBuf buffer = this.buffer;
buffer.resetWriterIndex();
byte byteToWrite = this.byteToWrite;
int intToWrite = this.intToWrite;
long longToWrite = this.longToWrite;
short shortToWrite = this.shortToWrite;
bh.consume(buffer.setByte(0, byteToWrite));
bh.consume(buffer.setShortLE(1, shortToWrite));
bh.consume(buffer.setIntLE(3, intToWrite));
bh.consume(buffer.setLongLE(7, longToWrite));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setBytesConstantOffset() do?
setBytesConstantOffset() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java.
Where is setBytesConstantOffset() defined?
setBytesConstantOffset() is defined in microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java at line 267.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free