Home / Function/ getShortSafe() — netty Function Reference

getShortSafe() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ae4d7f15_c0c8_f109_f40b_d0bcfaa79f1f["getShortSafe()"]
  2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"]
  ae4d7f15_c0c8_f109_f40b_d0bcfaa79f1f -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515
  91a08e9d_6796_2685_69c3_75e596cc8ed2["hashCodeAsciiSafe()"]
  91a08e9d_6796_2685_69c3_75e596cc8ed2 -->|calls| ae4d7f15_c0c8_f109_f40b_d0bcfaa79f1f
  style ae4d7f15_c0c8_f109_f40b_d0bcfaa79f1f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 833–838

    private static short getShortSafe(byte[] bytes, int offset) {
        if (BIG_ENDIAN_NATIVE_ORDER) {
            return (short) (bytes[offset] << 8 | (bytes[offset + 1] & 0xff));
        }
        return (short) (bytes[offset] & 0xff | (bytes[offset + 1] << 8));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free