write() — netty Function Reference
Architecture documentation for the write() function in PooledByteBufAllocatorAlignBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 578050e7_891b_85dd_45cf_3e525b5554c6["write()"] f2a6748b_3f45_bdff_ac0b_1ebe34c917f2["PooledByteBufAllocatorAlignBenchmark"] 578050e7_891b_85dd_45cf_3e525b5554c6 -->|defined in| f2a6748b_3f45_bdff_ac0b_1ebe34c917f2 style 578050e7_891b_85dd_45cf_3e525b5554c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorAlignBenchmark.java lines 138–148
@Benchmark
public void write() {
int off = 0;
int lSize = size;
int lSizeMask = sizeMask;
int lAlignOffset = alignOffset;
for (int i = 0; i < lSize; i++) {
off = (off + OFFSET_ADD) & lSizeMask;
pooledDirectBuffer.setBytes(off + lAlignOffset, bytes);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does write() do?
write() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorAlignBenchmark.java.
Where is write() defined?
write() is defined in microbench/src/main/java/io/netty/microbench/buffer/PooledByteBufAllocatorAlignBenchmark.java at line 138.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free