toUpperCaseInt() — netty Function Reference
Architecture documentation for the toUpperCaseInt() function in SWARUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ac25e56f_2dd0_77d5_1a7c_972619044352["toUpperCaseInt()"] f8708bc1_cb99_2db5_e587_516d1dfe420a["SWARUtilTest"] ac25e56f_2dd0_77d5_1a7c_972619044352 -->|defined in| f8708bc1_cb99_2db5_e587_516d1dfe420a 9faf3741_2af6_d6a7_e666_a118e579fb59["getExtendedAsciiTable()"] ac25e56f_2dd0_77d5_1a7c_972619044352 -->|calls| 9faf3741_2af6_d6a7_e666_a118e579fb59 764a7bba_90e6_f89c_eb25_5b8e3334837c["shuffleArray()"] ac25e56f_2dd0_77d5_1a7c_972619044352 -->|calls| 764a7bba_90e6_f89c_eb25_5b8e3334837c 71ec7790_af7a_867d_0298_cc71cf028fc8["getInt()"] ac25e56f_2dd0_77d5_1a7c_972619044352 -->|calls| 71ec7790_af7a_867d_0298_cc71cf028fc8 style ac25e56f_2dd0_77d5_1a7c_972619044352 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/SWARUtilTest.java lines 124–142
@Test
void toUpperCaseInt() {
// given
final byte[] asciiTable = getExtendedAsciiTable();
shuffleArray(asciiTable, random);
// when
for (int idx = 0; idx < asciiTable.length; idx += Integer.BYTES) {
final int value = getInt(asciiTable, idx);
final int actual = SWARUtil.toUpperCase(value);
int expected = 0;
for (int i = 0; i < Integer.BYTES; i++) {
final byte b = (byte) Character.toUpperCase(asciiTable[idx + i]);
expected |= (b & 0xff) << (24 - (Byte.SIZE * i));
}
// then
assertEquals(expected, actual);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does toUpperCaseInt() do?
toUpperCaseInt() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java.
Where is toUpperCaseInt() defined?
toUpperCaseInt() is defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java at line 124.
What does toUpperCaseInt() call?
toUpperCaseInt() calls 3 function(s): getExtendedAsciiTable, getInt, shuffleArray.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free