Home / Function/ unrolledToLowerCase() — netty Function Reference

unrolledToLowerCase() — netty Function Reference

Architecture documentation for the unrolledToLowerCase() function in AsciiStringUtil.java from the netty codebase.

Function java CommonUtil Logging calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  293a26d5_1277_f133_0dbc_9358b4b043b5["unrolledToLowerCase()"]
  84873396_ba4c_3002_b5f9_9b7743d03751["AsciiStringUtil"]
  293a26d5_1277_f133_0dbc_9358b4b043b5 -->|defined in| 84873396_ba4c_3002_b5f9_9b7743d03751
  b3010567_92f1_0afe_995f_c513e385142f["toLowerCase()"]
  b3010567_92f1_0afe_995f_c513e385142f -->|calls| 293a26d5_1277_f133_0dbc_9358b4b043b5
  b3010567_92f1_0afe_995f_c513e385142f["toLowerCase()"]
  293a26d5_1277_f133_0dbc_9358b4b043b5 -->|calls| b3010567_92f1_0afe_995f_c513e385142f
  style 293a26d5_1277_f133_0dbc_9358b4b043b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/AsciiStringUtil.java lines 117–139

    private static void unrolledToLowerCase(final byte[] src, int srcPos,
                                            final byte[] dst, int dstOffset, final int byteCount) {
        assert byteCount >= 0 && byteCount < 8;
        int offset = 0;
        if ((byteCount & Integer.BYTES) != 0) {
            final int word = PlatformDependent.getInt(src, srcPos + offset);
            PlatformDependent.putInt(dst, dstOffset + offset, SWARUtil.toLowerCase(word));
            offset += Integer.BYTES;
        }

        if ((byteCount & Short.BYTES) != 0) {
            final short word = PlatformDependent.getShort(src, srcPos + offset);
            final short result = (short) ((toLowerCase((byte) (word >>> 8)) << 8) | toLowerCase((byte) word));
            PlatformDependent.putShort(dst, dstOffset + offset, result);
            offset += Short.BYTES;
        }

        // this is equivalent to byteCount >= Byte.BYTES (i.e. whether byteCount is odd)
        if ((byteCount & Byte.BYTES) != 0) {
            PlatformDependent.putByte(dst, dstOffset + offset,
                                      toLowerCase(PlatformDependent.getByte(src, srcPos + offset)));
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does unrolledToLowerCase() do?
unrolledToLowerCase() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiStringUtil.java.
Where is unrolledToLowerCase() defined?
unrolledToLowerCase() is defined in common/src/main/java/io/netty/util/AsciiStringUtil.java at line 117.
What does unrolledToLowerCase() call?
unrolledToLowerCase() calls 1 function(s): toLowerCase.
What calls unrolledToLowerCase()?
unrolledToLowerCase() is called by 1 function(s): toLowerCase.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free