Home / Function/ hashCodeAsciiSanitizeShort() — netty Function Reference

hashCodeAsciiSanitizeShort() — netty Function Reference

Architecture documentation for the hashCodeAsciiSanitizeShort() function in PlatformDependent.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b3e8d0c6_0037_b321_fef1_8e79f9325947["hashCodeAsciiSanitizeShort()"]
  2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"]
  b3e8d0c6_0037_b321_fef1_8e79f9325947 -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515
  3af1bd26_c77c_d99a_9035_8e53792f0908["hashCodeAscii()"]
  3af1bd26_c77c_d99a_9035_8e53792f0908 -->|calls| b3e8d0c6_0037_b321_fef1_8e79f9325947
  style b3e8d0c6_0037_b321_fef1_8e79f9325947 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 878–886

    private static int hashCodeAsciiSanitizeShort(CharSequence value, int offset) {
        if (BIG_ENDIAN_NATIVE_ORDER) {
            // mimic a unsafe.getShort call on a big endian machine
            return (value.charAt(offset + 1) & 0x1f) |
                    (value.charAt(offset) & 0x1f) << 8;
        }
        return (value.charAt(offset + 1) & 0x1f) << 8 |
                (value.charAt(offset) & 0x1f);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does hashCodeAsciiSanitizeShort() do?
hashCodeAsciiSanitizeShort() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java.
Where is hashCodeAsciiSanitizeShort() defined?
hashCodeAsciiSanitizeShort() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java at line 878.
What calls hashCodeAsciiSanitizeShort()?
hashCodeAsciiSanitizeShort() is called by 1 function(s): hashCodeAscii.

Analyze Your Own Codebase

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

Try Supermodel Free