ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 81494051_cb4f_f355_d392_780646f02999["ByteBuf()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 81494051_cb4f_f355_d392_780646f02999 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 81494051_cb4f_f355_d392_780646f02999 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 54–72
private ByteBuf buffer(BufferType bufferType, int capacity) {
switch (bufferType) {
case DIRECT_UNPOOLED:
return Unpooled.directBuffer(capacity);
case HEAP_UNPOOLED:
return Unpooled.buffer(capacity);
case DIRECT_POOLED:
return PooledByteBufAllocator.DEFAULT.directBuffer(capacity);
case HEAP_POOLED:
return PooledByteBufAllocator.DEFAULT.buffer(capacity);
case DIRECT_ADAPTIVE:
return adaptiveByteBufAllocator.directBuffer(capacity);
case HEAP_ADAPTIVE:
return adaptiveByteBufAllocator.heapBuffer(capacity);
default:
throw new AssertionError("unexpected buffer type: " + bufferType);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free