MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / bigIntToIP

Function bigIntToIP

pkg/funclet/network/allocate_ip_linux.go:122–124  ·  view source on GitHub ↗

Converts 128 bit integer into a 4 bytes IP address

(v *big.Int)

Source from the content-addressed store, hash-verified

120
121// Converts 128 bit integer into a 4 bytes IP address
122func bigIntToIP(v *big.Int) net.IP {
123 return net.IP(v.Bytes())
124}

Callers 1

increaseIPFunction · 0.70

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected