trimIndicesToCapacity() — netty Function Reference
Architecture documentation for the trimIndicesToCapacity() function in AbstractByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f6b6c4db_82c0_d683_8c89_dafc8446698b["trimIndicesToCapacity()"] bbab270f_457a_3319_83a8_0a0540484666["AbstractByteBuf"] f6b6c4db_82c0_d683_8c89_dafc8446698b -->|defined in| bbab270f_457a_3319_83a8_0a0540484666 67993e0c_3b33_e884_495b_6ad7509b65c8["writerIndex()"] f6b6c4db_82c0_d683_8c89_dafc8446698b -->|calls| 67993e0c_3b33_e884_495b_6ad7509b65c8 365c915c_1533_c6e7_7c53_8cc0be7fd82c["setIndex0()"] f6b6c4db_82c0_d683_8c89_dafc8446698b -->|calls| 365c915c_1533_c6e7_7c53_8cc0be7fd82c e34ed3b7_d7f4_5f98_9b6d_87d59cdaec5a["readerIndex()"] f6b6c4db_82c0_d683_8c89_dafc8446698b -->|calls| e34ed3b7_d7f4_5f98_9b6d_87d59cdaec5a style f6b6c4db_82c0_d683_8c89_dafc8446698b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java lines 272–276
protected final void trimIndicesToCapacity(int newCapacity) {
if (writerIndex() > newCapacity) {
setIndex0(Math.min(readerIndex(), newCapacity), newCapacity);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does trimIndicesToCapacity() do?
trimIndicesToCapacity() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java.
Where is trimIndicesToCapacity() defined?
trimIndicesToCapacity() is defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java at line 272.
What does trimIndicesToCapacity() call?
trimIndicesToCapacity() calls 3 function(s): readerIndex, setIndex0, writerIndex.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free