MCPcopy Create free account
hub / github.com/apple/foundationdb / isValid

Method isValid

flow/network.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool IPAddress::isValid() const {
59 if (isV6()) {
60 const auto& ip = std::get<IPAddressStore>(addr);
61 return std::any_of(ip.begin(), ip.end(), [](uint8_t part) { return part != 0; });
62 }
63 return std::get<uint32_t>(addr) != 0;
64}
65
66FDB_DEFINE_BOOLEAN_PARAM(NetworkAddressFromHostname);
67

Callers 10

initMethod · 0.45
Trace.cppFile · 0.45
insertBaseCipherKeyMethod · 0.45
getLatestCipherKeyMethod · 0.45
decryptMethod · 0.45
BlobCipher.cppFile · 0.45
replaceMethod · 0.45
getCurrentLineageFunction · 0.45
_AssumeVersionMethod · 0.45
actionMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

actionMethod · 0.36