ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in CompositeByteBufSequentialBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a0bb53b3_7532_650f_d4d1_c2843acddb34["ByteBuf()"] a31cbcd2_284d_80df_b419_f14bc59b12cf["CompositeByteBufSequentialBenchmark"] a0bb53b3_7532_650f_d4d1_c2843acddb34 -->|defined in| a31cbcd2_284d_80df_b419_f14bc59b12cf style a0bb53b3_7532_650f_d4d1_c2843acddb34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java lines 108–123
private static ByteBuf newBufferSmallChunks(int length) {
List<ByteBuf> buffers = new ArrayList<ByteBuf>(((length + 1) / 45) * 19);
for (int i = 0; i < length + 45; i += 45) {
for (int j = 1; j <= 9; j++) {
buffers.add(EMPTY_BUFFER);
buffers.add(wrappedBuffer(new byte[j]));
}
buffers.add(EMPTY_BUFFER);
}
ByteBuf buffer = wrappedBuffer(Integer.MAX_VALUE, buffers.toArray(new ByteBuf[0]));
// Truncate to the requested capacity.
return buffer.capacity(length).writerIndex(0);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java.
Where is ByteBuf() defined?
ByteBuf() is defined in microbench/src/main/java/io/netty/buffer/CompositeByteBufSequentialBenchmark.java at line 108.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free