MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / decimal_to_ipv4

Function decimal_to_ipv4

src/conversions/ipv4_conversion.rs:123–134  ·  view source on GitHub ↗

Convert a decimal representation of an IP address to its IPv4 format. The conversion extracts each octet by masking the lower 8 bits and right-shifting. # Arguments `decimal_ipv4` - An unsigned 32-bit integer representing the decimal IP address # Returns `Ok(String)` - The IPv4 representation of the decimal IP address

(decimal_ipv4: u32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

pushMethod · 0.80

Tested by 1