| 418 | |
| 419 | |
| 420 | static CC_INLINE cc_bool IPv4_ToString(const void* ip, const void* port, cc_string* dst) { |
| 421 | int portNum = Stream_GetU16_BE(port); |
| 422 | char* rawIP = (char*)ip; |
| 423 | |
| 424 | String_Format4(dst, "%b.%b.%b.%b", &rawIP[0], &rawIP[1], &rawIP[2], &rawIP[3]); |
| 425 | String_Format1(dst, ":%i", &portNum); |
| 426 | return true; |
| 427 | } |
| 428 | #endif |
| 429 | |
| 430 |
no test coverage detected