Component() — netty Function Reference
Architecture documentation for the Component() function in FixedCompositeByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 945846ae_77bc_776f_0c1e_106f4a68dfb3["Component()"] c3651b69_631a_1f76_b70c_086b089609c2["FixedCompositeByteBuf"] 945846ae_77bc_776f_0c1e_106f4a68dfb3 -->|defined in| c3651b69_631a_1f76_b70c_086b089609c2 f0de115a_8919_527d_c6d2_3304a2a6aaf0["Component()"] f0de115a_8919_527d_c6d2_3304a2a6aaf0 -->|calls| 945846ae_77bc_776f_0c1e_106f4a68dfb3 f0de115a_8919_527d_c6d2_3304a2a6aaf0["Component()"] 945846ae_77bc_776f_0c1e_106f4a68dfb3 -->|calls| f0de115a_8919_527d_c6d2_3304a2a6aaf0 style 945846ae_77bc_776f_0c1e_106f4a68dfb3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java lines 229–250
private Component findComponent(int index) {
int readable = 0;
for (int i = 0 ; i < buffers.length; i++) {
Component comp = null;
ByteBuf b = buffers[i];
if (b instanceof Component) {
comp = (Component) b;
b = comp.buf;
}
readable += b.readableBytes();
if (index < readable) {
if (comp == null) {
// Create a new component and store it in the array so it not create a new object
// on the next access.
comp = new Component(i, readable - b.readableBytes(), b);
buffers[i] = comp;
}
return comp;
}
}
throw new IllegalStateException();
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does Component() do?
Component() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java.
Where is Component() defined?
Component() is defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java at line 229.
What does Component() call?
Component() calls 1 function(s): Component.
What calls Component()?
Component() is called by 1 function(s): Component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free