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