Home / Function/ byteBufUtilWriteUtf8Megamorphic() — netty Function Reference

byteBufUtilWriteUtf8Megamorphic() — netty Function Reference

Architecture documentation for the byteBufUtilWriteUtf8Megamorphic() function in Utf8EncodingBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e31c037b_eba8_bd82_50a7_87f835c67237["byteBufUtilWriteUtf8Megamorphic()"]
  14a7a416_5aef_2dc8_262c_52585d9f0cac["Utf8EncodingBenchmark"]
  e31c037b_eba8_bd82_50a7_87f835c67237 -->|defined in| 14a7a416_5aef_2dc8_262c_52585d9f0cac
  640e9533_bf6a_ebdd_f7f7_e4a05ca30d8a["length()"]
  e31c037b_eba8_bd82_50a7_87f835c67237 -->|calls| 640e9533_bf6a_ebdd_f7f7_e4a05ca30d8a
  style e31c037b_eba8_bd82_50a7_87f835c67237 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java lines 210–229

    @Benchmark
    @CompilerControl(Mode.DONT_INLINE)
    public int byteBufUtilWriteUtf8Megamorphic() {
        int countBytes = 0;
        for (int i = 0, size = dataSetLength; i < size; i++) {
            final StringBuilder stringBuilder = stringBuilders[i];
            final String string = strings[i];
            final AnotherCharSequence anotherCharSequence = anotherCharSequences[i];
            buffer.resetWriterIndex();
            ByteBufUtil.writeUtf8(buffer, stringBuilder, 0, stringBuilder.length());
            countBytes += buffer.writerIndex();
            buffer.resetWriterIndex();
            ByteBufUtil.writeUtf8(buffer, string, 0, string.length());
            countBytes += buffer.writerIndex();
            buffer.resetWriterIndex();
            ByteBufUtil.writeUtf8(buffer, anotherCharSequence, 0, anotherCharSequence.length());
            countBytes += buffer.writerIndex();
        }
        return countBytes;
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does byteBufUtilWriteUtf8Megamorphic() do?
byteBufUtilWriteUtf8Megamorphic() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java.
Where is byteBufUtilWriteUtf8Megamorphic() defined?
byteBufUtilWriteUtf8Megamorphic() is defined in microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java at line 210.
What does byteBufUtilWriteUtf8Megamorphic() call?
byteBufUtilWriteUtf8Megamorphic() calls 1 function(s): length.

Analyze Your Own Codebase

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

Try Supermodel Free