FixedCompositeByteBuf() — netty Function Reference
Architecture documentation for the FixedCompositeByteBuf() function in FixedCompositeByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d9190928_bf46_3572_cdf2_ef21a0627edb["FixedCompositeByteBuf()"] c3651b69_631a_1f76_b70c_086b089609c2["FixedCompositeByteBuf"] d9190928_bf46_3572_cdf2_ef21a0627edb -->|defined in| c3651b69_631a_1f76_b70c_086b089609c2 6ace2093_e73c_bb44_629d_7396f77a1d8e["isDirect()"] d9190928_bf46_3572_cdf2_ef21a0627edb -->|calls| 6ace2093_e73c_bb44_629d_7396f77a1d8e 6cdaf76a_54de_8eca_a3fc_af93529f98b1["nioBufferCount()"] d9190928_bf46_3572_cdf2_ef21a0627edb -->|calls| 6cdaf76a_54de_8eca_a3fc_af93529f98b1 4392eccb_a32d_f53a_4fc4_e04b525da292["capacity()"] d9190928_bf46_3572_cdf2_ef21a0627edb -->|calls| 4392eccb_a32d_f53a_4fc4_e04b525da292 style d9190928_bf46_3572_cdf2_ef21a0627edb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java lines 45–77
FixedCompositeByteBuf(ByteBufAllocator allocator, ByteBuf... buffers) {
super(AbstractByteBufAllocator.DEFAULT_MAX_CAPACITY);
if (buffers.length == 0) {
this.buffers = EMPTY;
order = ByteOrder.BIG_ENDIAN;
nioBufferCount = 1;
capacity = 0;
direct = Unpooled.EMPTY_BUFFER.isDirect();
} else {
ByteBuf b = buffers[0];
this.buffers = buffers;
boolean direct = true;
int nioBufferCount = b.nioBufferCount();
int capacity = b.readableBytes();
order = b.order();
for (int i = 1; i < buffers.length; i++) {
b = buffers[i];
if (buffers[i].order() != order) {
throw new IllegalArgumentException("All ByteBufs need to have same ByteOrder");
}
nioBufferCount += b.nioBufferCount();
capacity += b.readableBytes();
if (!b.isDirect()) {
direct = false;
}
}
this.nioBufferCount = nioBufferCount;
this.capacity = capacity;
this.direct = direct;
}
setIndex(0, capacity());
this.allocator = allocator;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does FixedCompositeByteBuf() do?
FixedCompositeByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java.
Where is FixedCompositeByteBuf() defined?
FixedCompositeByteBuf() is defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java at line 45.
What does FixedCompositeByteBuf() call?
FixedCompositeByteBuf() calls 3 function(s): capacity, isDirect, nioBufferCount.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free