MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IPv4ToString

Function IPv4ToString

src/netaddress.cpp:507–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507static std::string IPv4ToString(std::span<const uint8_t> a)
508{
509 return strprintf("%u.%u.%u.%u", a[0], a[1], a[2], a[3]);
510}
511
512// Return an IPv6 address text representation with zero compression as described in RFC 5952
513// ("A Recommendation for IPv6 Address Text Representation").

Callers 1

ToStringAddrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected