sequentialWriteAndRead() — netty Function Reference
Architecture documentation for the sequentialWriteAndRead() function in CompositeByteBufSequentialBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 723fb62b_cc8e_9352_3afe_f8c6b3c2724b["sequentialWriteAndRead()"] a31cbcd2_284d_80df_b419_f14bc59b12cf["CompositeByteBufSequentialBenchmark"] 723fb62b_cc8e_9352_3afe_f8c6b3c2724b -->|defined in| a31cbcd2_284d_80df_b419_f14bc59b12cf style 723fb62b_cc8e_9352_3afe_f8c6b3c2724b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java lines 94–106
@Benchmark
public int sequentialWriteAndRead() {
buffer.clear();
for (int i = 0, l = buffer.writableBytes(); i < l; i++) {
buffer.writeByte('a');
}
for (int i = 0, l = buffer.readableBytes(); i < l; i++) {
if (buffer.readByte() == 'b') {
return -1;
}
}
return 1;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sequentialWriteAndRead() do?
sequentialWriteAndRead() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java.
Where is sequentialWriteAndRead() defined?
sequentialWriteAndRead() is defined in microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java at line 94.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free