getIndex() — netty Function Reference
Architecture documentation for the getIndex() function in SWARUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 10a656df_ac6f_e714_5197_180098c1eaaa["getIndex()"] 42ee86cb_49f5_6d26_1f37_9aa45922bfe1["SWARUtil"] 10a656df_ac6f_e714_5197_180098c1eaaa -->|defined in| 42ee86cb_49f5_6d26_1f37_9aa45922bfe1 style 10a656df_ac6f_e714_5197_180098c1eaaa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/SWARUtil.java lines 54–57
public static int getIndex(final long word, final boolean isBigEndian) {
final int zeros = isBigEndian? Long.numberOfLeadingZeros(word) : Long.numberOfTrailingZeros(word);
return zeros >>> 3;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getIndex() do?
getIndex() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/SWARUtil.java.
Where is getIndex() defined?
getIndex() is defined in common/src/main/java/io/netty/util/internal/SWARUtil.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free