+inline std::string fastIpv4ToString(const in_addr& inAddr) {
+ char str[sizeof("255.255.255.255")];
+ return std::string(str, fastIpV4ToBufferUnsafe(inAddr, str));
+}
+
+inline void fastIpv4AppendToString(const in_addr& inAddr, std::string& out) {
+ char str[sizeof("255.255.255.255")];
+ out.append(str, fastIpV4ToBufferUnsafe(inAddr, str));
+}
+
+inline size_t fastIpv6ToBufferUnsafe(const in6_addr& in6Addr, char* str) {