5 #define ntohll(x) (((static_cast<UInt64>(ntohl(static_cast<UInt32>(x)))) << 32) + ntohl(x >> 32))
15 memcpy( &buf, a_Value,
sizeof( buf));
16 buf = (( (
static_cast<UInt64>(htonl(
static_cast<UInt32>(buf)))) << 32) + htonl(buf >> 32));
27 memcpy( &buf, a_Value,
sizeof( buf));
39 memcpy(&buf, a_Value, 8);
42 memcpy(&x, &buf,
sizeof(
double));
53 memcpy(&buf, a_Value, 8);
55 return *
reinterpret_cast<Int64 *
>(&buf);
65 memcpy(&buf, a_Value, 8);
78 memcpy(&buf, a_Value, 4);
80 memcpy(&x, &buf,
sizeof(
float));
UInt32 HostToNetwork4(const void *a_Value)
Int64 NetworkToHostLong8(const void *a_Value)
double NetworkToHostDouble8(const void *a_Value)
UInt64 NetworkToHostULong8(const void *a_Value)
float NetworkToHostFloat4(const void *a_Value)
UInt64 HostToNetwork8(const void *a_Value)
unsigned long long UInt64