Help to handle endianess problems of different kind.
More...
|
#define | P99_ENDIANNESS ((p99_endianness)P99_HTON(4, UINT32_C(0x01020304))) |
| Return the platform endianness in terms of a value of type p99_endianness. More...
|
|
#define | P99_HTON(N, X) (((P99_PASTE2(p00_endian_, N) const)P99_HTON_INITIALIZER(N, X)).p00_i) |
| host to network transformation of integers according to the endianness of the platform More...
|
|
#define | P99_HTON_INITIALIZER(N, X) { .p00_c = { P00_HTON(N, X) } } |
|
#define | P99_HTONL(X) P99_HTON(4, X) |
| host to network transformation of integers according to the endianness of the platform More...
|
|
#define | P99_HTONS(X) P99_HTON(2, X) |
| host to network transformation of integers according to the endianness of the platform More...
|
|
#define | P99_NTOH(N, X) (P99_PASTE2(p00_uint_byte_, N) const)P00_NTOH(N, X, ((P99_PASTE2(p00_endian_, N) const)P99_NTOH_INITIALIZER(N, X))) |
| network to host transformation of integers according to the endianness of the platform More...
|
|
#define | P99_NTOH_INITIALIZER(N, X) { .p00_i = (X) } |
|
#define | P99_NTOHL(X) P99_NTOH(4, X) |
| network to host transformation of integers according to the endianness of the platform More...
|
|
#define | P99_NTOHS(X) P99_NTOH(2, X) |
| network to host transformation of integers according to the endianness of the platform More...
|
|
Help to handle endianess problems of different kind.