Home / Function/ writeInt() — netty Function Reference

writeInt() — netty Function Reference

Architecture documentation for the writeInt() function in DefaultChannelId.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aca15d4b_776f_9644_2693_2188808974da["writeInt()"]
  20dcb0e9_635a_927e_e4b0_31b79bc84709["DefaultChannelId"]
  aca15d4b_776f_9644_2693_2188808974da -->|defined in| 20dcb0e9_635a_927e_e4b0_31b79bc84709
  2e1e369d_9647_658a_e7b6_17d55f78fff8["DefaultChannelId()"]
  2e1e369d_9647_658a_e7b6_17d55f78fff8 -->|calls| aca15d4b_776f_9644_2693_2188808974da
  style aca15d4b_776f_9644_2693_2188808974da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/DefaultChannelId.java lines 230–239

    private static void writeInt(byte[] data, int i, int value) {
        if (PlatformDependent.isUnaligned()) {
            PlatformDependent.putInt(data, i, BIG_ENDIAN_NATIVE_ORDER ? value : Integer.reverseBytes(value));
            return;
        }
        data[i] = (byte) (value >>> 24);
        data[i + 1] = (byte) (value >>> 16);
        data[i + 2] = (byte) (value >>> 8);
        data[i + 3] = (byte) value;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeInt() do?
writeInt() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultChannelId.java.
Where is writeInt() defined?
writeInt() is defined in transport/src/main/java/io/netty/channel/DefaultChannelId.java at line 230.
What calls writeInt()?
writeInt() is called by 1 function(s): DefaultChannelId.

Analyze Your Own Codebase

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

Try Supermodel Free