DirectIoByteBufAllocator Class — netty Architecture
Architecture documentation for the DirectIoByteBufAllocator class in DirectIoByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 53bd056d_90b9_3445_9d03_8c7d9c9bc629["DirectIoByteBufAllocator"] 0a517d23_ec02_8f13_e4d6_9bdf054422b6["DirectIoByteBufAllocator.java"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|defined in| 0a517d23_ec02_8f13_e4d6_9bdf054422b6 6365fa47_0ee2_05ce_c6b7_7ebabb3391b2["DirectIoByteBufAllocator()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| 6365fa47_0ee2_05ce_c6b7_7ebabb3391b2 38f32126_1edc_61e6_4114_3c02396a5d98["ByteBufAllocator()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| 38f32126_1edc_61e6_4114_3c02396a5d98 1c658bda_74b3_6ea6_20e9_fb16d243af8c["ByteBuf()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| 1c658bda_74b3_6ea6_20e9_fb16d243af8c 45e50972_24d0_9143_58af_94de517634af["CompositeByteBuf()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| 45e50972_24d0_9143_58af_94de517634af 9280fa78_896e_bb79_be8a_bf8c91f99938["isDirectBufferPooled()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| 9280fa78_896e_bb79_be8a_bf8c91f99938 b4c3cef6_382e_6297_d45d_951ec53027e9["calculateNewCapacity()"] 53bd056d_90b9_3445_9d03_8c7d9c9bc629 -->|method| b4c3cef6_382e_6297_d45d_951ec53027e9
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/DirectIoByteBufAllocator.java lines 22–136
final class DirectIoByteBufAllocator implements ByteBufAllocator {
private final ByteBufAllocator wrapped;
DirectIoByteBufAllocator(ByteBufAllocator wrapped) {
if (wrapped instanceof DirectIoByteBufAllocator) {
wrapped = ((DirectIoByteBufAllocator) wrapped).wrapped();
}
this.wrapped = wrapped;
}
ByteBufAllocator wrapped() {
return wrapped;
}
@Override
public ByteBuf buffer() {
return wrapped.buffer();
}
@Override
public ByteBuf buffer(int initialCapacity) {
return wrapped.buffer(initialCapacity);
}
@Override
public ByteBuf buffer(int initialCapacity, int maxCapacity) {
return wrapped.buffer(initialCapacity, maxCapacity);
}
@Override
public ByteBuf ioBuffer() {
return directBuffer();
}
@Override
public ByteBuf ioBuffer(int initialCapacity) {
return directBuffer(initialCapacity);
}
@Override
public ByteBuf ioBuffer(int initialCapacity, int maxCapacity) {
return directBuffer(initialCapacity, maxCapacity);
}
@Override
public ByteBuf heapBuffer() {
return wrapped.heapBuffer();
}
@Override
public ByteBuf heapBuffer(int initialCapacity) {
return wrapped.heapBuffer(initialCapacity);
}
@Override
public ByteBuf heapBuffer(int initialCapacity, int maxCapacity) {
return wrapped.heapBuffer(initialCapacity, maxCapacity);
}
@Override
public ByteBuf directBuffer() {
return wrapped.directBuffer();
}
@Override
public ByteBuf directBuffer(int initialCapacity) {
return wrapped.directBuffer(initialCapacity);
}
@Override
public ByteBuf directBuffer(int initialCapacity, int maxCapacity) {
return wrapped.directBuffer(initialCapacity, maxCapacity);
}
@Override
public CompositeByteBuf compositeBuffer() {
return wrapped.compositeBuffer();
}
@Override
Defined In
Source
Frequently Asked Questions
What is the DirectIoByteBufAllocator class?
DirectIoByteBufAllocator is a class in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/DirectIoByteBufAllocator.java.
Where is DirectIoByteBufAllocator defined?
DirectIoByteBufAllocator is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/DirectIoByteBufAllocator.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free