Home / Function/ ipv4AddressToInt() — netty Function Reference

ipv4AddressToInt() — netty Function Reference

Architecture documentation for the ipv4AddressToInt() function in NetUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4cf25418_32d5_84a8_9633_159d8dafbab1["ipv4AddressToInt()"]
  40fb3f7d_c2dd_316b_f965_bdef8e0dad94["NetUtil"]
  4cf25418_32d5_84a8_9633_159d8dafbab1 -->|defined in| 40fb3f7d_c2dd_316b_f965_bdef8e0dad94
  style 4cf25418_32d5_84a8_9633_159d8dafbab1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/NetUtil.java lines 391–398

    public static int ipv4AddressToInt(Inet4Address ipAddress) {
        byte[] octets = ipAddress.getAddress();

        return  (octets[0] & 0xff) << 24 |
                (octets[1] & 0xff) << 16 |
                (octets[2] & 0xff) << 8 |
                 octets[3] & 0xff;
    }

Domain

Subdomains

Frequently Asked Questions

What does ipv4AddressToInt() do?
ipv4AddressToInt() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/NetUtil.java.
Where is ipv4AddressToInt() defined?
ipv4AddressToInt() is defined in common/src/main/java/io/netty/util/NetUtil.java at line 391.

Analyze Your Own Codebase

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

Try Supermodel Free