Home / Function/ makeShort() — netty Function Reference

makeShort() — netty Function Reference

Architecture documentation for the makeShort() function in RedisCodecUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bd425474_2bb9_11d9_1e23_77bfab81c657["makeShort()"]
  12e7c65d_46c6_d84b_951d_c38480417075["RedisCodecUtil"]
  bd425474_2bb9_11d9_1e23_77bfab81c657 -->|defined in| 12e7c65d_46c6_d84b_951d_c38480417075
  style bd425474_2bb9_11d9_1e23_77bfab81c657 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-redis/src/main/java/io/netty/handler/codec/redis/RedisCodecUtil.java lines 36–39

    static short makeShort(char first, char second) {
        return PlatformDependent.BIG_ENDIAN_NATIVE_ORDER ?
                (short) ((second << 8) | first) : (short) ((first << 8) | second);
    }

Domain

Subdomains

Frequently Asked Questions

What does makeShort() do?
makeShort() is a function in the netty codebase, defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisCodecUtil.java.
Where is makeShort() defined?
makeShort() is defined in codec-redis/src/main/java/io/netty/handler/codec/redis/RedisCodecUtil.java at line 36.

Analyze Your Own Codebase

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

Try Supermodel Free