29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
37M_API M_uint16 M_swap16(M_uint16 n) M_WARN_UNUSED_RESULT;
38M_API M_uint32 M_swap32(M_uint32 n) M_WARN_UNUSED_RESULT;
39M_API M_uint64 M_swap64(M_uint64 n) M_WARN_UNUSED_RESULT;
41M_BEGIN_IGNORE_REDECLARATIONS
42#if M_BLACKLIST_FUNC == 1
46 M_DEPRECATED_FOR(
M_hton32, M_uint32 htonl(M_uint32 hostlong))
51 M_DEPRECATED_FOR(
M_hton16, M_uint16 htons(M_uint16 hostshort))
56 M_DEPRECATED_FOR(
M_ntoh32, M_uint32 ntohl(M_uint32 netlong))
61 M_DEPRECATED_FOR(
M_ntoh16, M_uint16 ntohs(M_uint16 netshort))
64M_END_IGNORE_REDECLARATIONS
90M_API M_uint16
M_hton16(M_uint16 h16) M_WARN_UNUSED_RESULT;
99M_API M_uint32
M_hton32(M_uint32 h32) M_WARN_UNUSED_RESULT;
108M_API M_uint64
M_hton64(M_uint64 h64) M_WARN_UNUSED_RESULT;
117M_API M_uint16
M_htol16(M_uint16 h16) M_WARN_UNUSED_RESULT;
126M_API M_uint32
M_htol32(M_uint32 h32) M_WARN_UNUSED_RESULT;
135M_API M_uint64
M_htol64(M_uint64 h64) M_WARN_UNUSED_RESULT;
144M_API M_uint16
M_ntoh16(M_uint16 be16) M_WARN_UNUSED_RESULT;
153M_API M_uint32
M_ntoh32(M_uint32 be32) M_WARN_UNUSED_RESULT;
162M_API M_uint64
M_ntoh64(M_uint64 be64) M_WARN_UNUSED_RESULT;
171M_API M_uint16
M_ltoh16(M_uint16 be16) M_WARN_UNUSED_RESULT;
180M_API M_uint32
M_ltoh32(M_uint32 be32) M_WARN_UNUSED_RESULT;
189M_API M_uint64
M_ltoh64(M_uint64 be64) M_WARN_UNUSED_RESULT;
198# define M_BIG_ENDIAN 1
199# define M_LITTLE_ENDIAN 2
201M_API
int M_Current_Endian(
void);
203# define M_hton_u16(n) M_hton16(n)
204# define M_hton_16(n) M_hton16(n)
205# define M_hton_u32(n) M_hton32(n)
206# define M_hton_32(n) M_hton32(n)
207# define M_hton_u64(n) M_hton64(n)
208# define M_hton_64(n) M_hton64(n)
209# define M_ntoh_u16(n) M_hton_u16(n)
210# define M_ntoh_16(n) M_hton_16(n)
211# define M_ntoh_u32(n) M_hton_u32(n)
212# define M_ntoh_32(n) M_hton_32(n)
213# define M_ntoh_u64(n) M_hton_u64(n)
214# define M_ntoh_64(n) M_hton_64(n)
216# define M_swapu16(n) M_swap16(n)
217# define M_swapu32(n) M_swap32(n)
218# define M_swapu64(n) M_swap64(n)
M_endian_t
Definition: m_endian.h:76
M_uint64 M_htol64(M_uint64 h64) M_WARN_UNUSED_RESULT
M_uint16 M_ltoh16(M_uint16 be16) M_WARN_UNUSED_RESULT
M_uint32 M_ltoh32(M_uint32 be32) M_WARN_UNUSED_RESULT
M_uint32 M_ntoh32(M_uint32 be32) M_WARN_UNUSED_RESULT
M_uint64 M_ntoh64(M_uint64 be64) M_WARN_UNUSED_RESULT
M_uint32 M_hton32(M_uint32 h32) M_WARN_UNUSED_RESULT
M_uint16 M_htol16(M_uint16 h16) M_WARN_UNUSED_RESULT
M_uint32 M_htol32(M_uint32 h32) M_WARN_UNUSED_RESULT
M_uint64 M_hton64(M_uint64 h64) M_WARN_UNUSED_RESULT
M_uint64 M_ltoh64(M_uint64 be64) M_WARN_UNUSED_RESULT
M_uint16 M_hton16(M_uint16 h16) M_WARN_UNUSED_RESULT
M_uint16 M_ntoh16(M_uint16 be16) M_WARN_UNUSED_RESULT
@ M_ENDIAN_LITTLE
Definition: m_endian.h:78
@ M_ENDIAN_BIG
Definition: m_endian.h:77