20 #include <glog/logging.h> 24 using namespace folly;
29 in_addr ip = ipv4Addr.
toAddr();
30 char outputString[INET_ADDRSTRLEN] = {0};
34 inet_ntop(AF_INET, &ip, outputString,
sizeof(outputString));
75 IPAddressV6 ipv6Addr(
"F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
76 in6_addr ip = ipv6Addr.
toAddr();
77 char outputString[INET6_ADDRSTRLEN] = {0};
81 inet_ntop(AF_INET6, &ip, outputString,
sizeof(outputString));
87 IPAddressV6 ip(
"F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
98 IPAddressV6 ip(
"F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
107 IPAddressV6 ip(
"F1E0:0ACE:FB94:7ADF:22E8:6DE6:9672:3725");
124 IPAddressV6 ip(
"2803:6082:18e0:2c49:1a23:9ee0:5c87:9800");
135 IPAddressV6 ip(
"2803:6082:18e0:2c49:1a23:9ee0:5c87:980r");
149 CHECK(maybeIp.hasValue());
159 CHECK(maybeIp.hasError());
189 gflags::ParseCommandLineFlags(&argc, &argv,
true);
std::string toFullyQualified() const
std::string sformat(StringPiece fmt, Args &&...args)
static constexpr size_t kMaxToFullyQualifiedSize
int main(int argc, char *argv[])
—— Concurrent Priority Queue Implementation ——
std::string toFullyQualified() const
BENCHMARK_RELATIVE(ipv4_to_fully_qualified, iters)
static constexpr size_t kToFullyQualifiedSize
void toFullyQualifiedAppend(std::string &out) const
static Expected< IPAddressV6, IPAddressFormatError > tryFromString(StringPiece str) noexcept
void toFullyQualifiedAppend(std::string &out) const
void toAppend(char value, Tgt *result)
BENCHMARK(fbFollyGlobalBenchmarkBaseline)
auto doNotOptimizeAway(const T &datum) -> typename std::enable_if< !detail::DoNotOptimizeAwayNeedsIndirect< T >::value >::type