Home / Function/ toLowerCaseInt() — netty Function Reference

toLowerCaseInt() — netty Function Reference

Architecture documentation for the toLowerCaseInt() function in SWARUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a1ba8275_80a5_ca1d_9e63_fb1914bd6459["toLowerCaseInt()"]
  f8708bc1_cb99_2db5_e587_516d1dfe420a["SWARUtilTest"]
  a1ba8275_80a5_ca1d_9e63_fb1914bd6459 -->|defined in| f8708bc1_cb99_2db5_e587_516d1dfe420a
  9faf3741_2af6_d6a7_e666_a118e579fb59["getExtendedAsciiTable()"]
  a1ba8275_80a5_ca1d_9e63_fb1914bd6459 -->|calls| 9faf3741_2af6_d6a7_e666_a118e579fb59
  764a7bba_90e6_f89c_eb25_5b8e3334837c["shuffleArray()"]
  a1ba8275_80a5_ca1d_9e63_fb1914bd6459 -->|calls| 764a7bba_90e6_f89c_eb25_5b8e3334837c
  71ec7790_af7a_867d_0298_cc71cf028fc8["getInt()"]
  a1ba8275_80a5_ca1d_9e63_fb1914bd6459 -->|calls| 71ec7790_af7a_867d_0298_cc71cf028fc8
  style a1ba8275_80a5_ca1d_9e63_fb1914bd6459 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/SWARUtilTest.java lines 164–182

    @Test
    void toLowerCaseInt() {
        // 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.toLowerCase(value);
            int expected = 0;
            for (int i = 0; i < Integer.BYTES; i++) {
                final byte b = (byte) Character.toLowerCase(asciiTable[idx + i]);
                expected |= (b & 0xff) << (24 - (Byte.SIZE * i));
            }
            // then
            assertEquals(expected, actual);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does toLowerCaseInt() do?
toLowerCaseInt() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java.
Where is toLowerCaseInt() defined?
toLowerCaseInt() is defined in common/src/test/java/io/netty/util/internal/SWARUtilTest.java at line 164.
What does toLowerCaseInt() call?
toLowerCaseInt() 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