Home / Function/ setByteBatch() — netty Function Reference

setByteBatch() — netty Function Reference

Architecture documentation for the setByteBatch() function in ByteBufAccessBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  417b7e12_c52a_f93d_7a55_ce4d57cdc6d5["setByteBatch()"]
  bbe8e86b_057f_5aa0_71ed_6d8276f6f6f8["ByteBufAccessBenchmark"]
  417b7e12_c52a_f93d_7a55_ce4d57cdc6d5 -->|defined in| bbe8e86b_057f_5aa0_71ed_6d8276f6f6f8
  style 417b7e12_c52a_f93d_7a55_ce4d57cdc6d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java lines 217–225

    @Benchmark
    public void setByteBatch(Blackhole bh) {
        ByteBuf buffer = this.buffer;
        byte byteToWrite = this.byteToWrite;
        buffer.resetWriterIndex();
        for (int i = 0, size = batchSize; i < size; i++) {
            bh.consume(buffer.setByte(i, byteToWrite));
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setByteBatch() do?
setByteBatch() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java.
Where is setByteBatch() defined?
setByteBatch() is defined in microbench/src/main/java/io/netty/buffer/ByteBufAccessBenchmark.java at line 217.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free