Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

Architecture documentation for the ByteBuf() function in HeapByteBufBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  087319b4_cb88_3cbb_2b81_2fd05589f093["ByteBuf()"]
  0cd74505_43a2_f13d_0adf_1a6a92869999["HeapByteBufBenchmark"]
  087319b4_cb88_3cbb_2b81_2fd05589f093 -->|defined in| 0cd74505_43a2_f13d_0adf_1a6a92869999
  style 087319b4_cb88_3cbb_2b81_2fd05589f093 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/HeapByteBufBenchmark.java lines 39–45

    private static ByteBuf newBuffer(String classname) throws Exception {
        // Using reflection to workaround package-private implementations.
        Class<?> clazz = Class.forName(classname);
        Constructor<?> constructor = clazz.getDeclaredConstructor(ByteBufAllocator.class, int.class, int.class);
        constructor.setAccessible(true);
        return (ByteBuf) constructor.newInstance(ByteBufAllocator.DEFAULT, 8, Integer.MAX_VALUE);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free