toDecimal() — netty Function Reference
Architecture documentation for the toDecimal() function in HttpVersion.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 01b3632a_321d_d4bc_8f7e_b235cb5f5843["toDecimal()"] 059554be_05d5_d829_931e_2aaea4cf530a["HttpVersion"] 01b3632a_321d_d4bc_8f7e_b235cb5f5843 -->|defined in| 059554be_05d5_d829_931e_2aaea4cf530a e61d65d2_fa6e_7ea2_3820_3b783eb54836["HttpVersion()"] e61d65d2_fa6e_7ea2_3820_3b783eb54836 -->|calls| 01b3632a_321d_d4bc_8f7e_b235cb5f5843 d421ba7d_9261_911e_73db_1227319b5031["parseInt()"] d421ba7d_9261_911e_73db_1227319b5031 -->|calls| 01b3632a_321d_d4bc_8f7e_b235cb5f5843 style 01b3632a_321d_d4bc_8f7e_b235cb5f5843 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java lines 172–178
private static int toDecimal(final int value) {
if (value < '0' || value > '9') {
throw new IllegalArgumentException("Invalid version number, only 0-9 (0x30-0x39) allowed," +
" but received a '" + (char) value + "' (0x" + Integer.toHexString(value) + ")");
}
return value - '0';
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toDecimal() do?
toDecimal() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java.
Where is toDecimal() defined?
toDecimal() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java at line 172.
What calls toDecimal()?
toDecimal() is called by 2 function(s): HttpVersion, parseInt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free