Home / Function/ swapMedium() — netty Function Reference

swapMedium() — netty Function Reference

Architecture documentation for the swapMedium() function in ByteBufUtil.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  863e22b8_33cf_3d3f_b37c_ab11c3951992["swapMedium()"]
  920454f6_25f6_4a9b_3d32_9684c3e11f6c["ByteBufUtil"]
  863e22b8_33cf_3d3f_b37c_ab11c3951992 -->|defined in| 920454f6_25f6_4a9b_3d32_9684c3e11f6c
  a25efb62_fa62_08c5_238f_d23c15a3569b["ByteBuf()"]
  a25efb62_fa62_08c5_238f_d23c15a3569b -->|calls| 863e22b8_33cf_3d3f_b37c_ab11c3951992
  style 863e22b8_33cf_3d3f_b37c_ab11c3951992 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/ByteBufUtil.java lines 639–645

    public static int swapMedium(int value) {
        int swapped = value << 16 & 0xff0000 | value & 0xff00 | value >>> 16 & 0xff;
        if ((swapped & 0x800000) != 0) {
            swapped |= 0xff000000;
        }
        return swapped;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does swapMedium() do?
swapMedium() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java.
Where is swapMedium() defined?
swapMedium() is defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java at line 639.
What calls swapMedium()?
swapMedium() is called by 1 function(s): ByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free