| 620 | } |
| 621 | |
| 622 | inline void ToBigEndian(uint64_t n, uint32_t* buf) { |
| 623 | buf[0] = htonl(n >> 32); |
| 624 | buf[1] = htonl(n & 0xFFFFFFFFUL); |
| 625 | } |
| 626 | |
| 627 | inline uint64_t ToLittleEndian(const uint32_t* buf) { |
| 628 | return (((uint64_t)ntohl(buf[0])) << 32) | ntohl(buf[1]); |
no outgoing calls
no test coverage detected