MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / size

Method size

source/core/StarHostAddress.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82size_t HostAddress::size() const {
83 switch (m_mode) {
84 case NetworkMode::IPv4:
85 return 4;
86 case NetworkMode::IPv6:
87 return 16;
88 default:
89 return 0;
90 }
91}
92
93bool HostAddress::operator==(HostAddress const& a) const {
94 if (m_mode != a.m_mode)

Callers 3

operator==Method · 0.45
operator()Method · 0.45
lookupWithPortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected