Update contrib.
1 /** @file ../include/sys/endian.h
5 /** @fn be16dec(const void *pp)
7 Alignment-agnostic encode or decode bytestream to or from little or big endian.
14 /** @fn be32dec(const void *pp)
16 Alignment-agnostic encode or decode bytestream to or from little or big endian.
22 /** @fn be64dec(const void *pp)
24 Alignment-agnostic encode or decode bytestream to or from little or big endian.
31 /** @fn le16dec(const void *pp)
33 Alignment-agnostic encode or decode bytestream to or from little or big endian.
40 /** @fn le32dec(const void *pp)
42 Alignment-agnostic encode or decode bytestream to or from little or big endian.
49 /** @fn le64dec(const void *pp)
51 Alignment-agnostic encode or decode bytestream to or from little or big endian.
58 /** @fn be16enc(void *pp, uint16_t u)
60 Alignment-agnostic encode or decode bytestream to or from little or big endian.
66 /** @fn be32enc(void *pp, uint32_t u)
68 Alignment-agnostic encode or decode bytestream to or from little or big endian.
75 /** @fn be64enc(void *pp, uint64_t u)
77 Alignment-agnostic encode or decode bytestream to or from little or big endian.
83 /** @fn le16enc(void *pp, uint16_t u)
85 Alignment-agnostic encode or decode bytestream to or from little or big endian.
91 /** @fn le32enc(void *pp, uint32_t u)
93 Alignment-agnostic encode or decode bytestream to or from little or big endian.
99 /** @fn le64enc(void *pp, uint64_t u)
101 Alignment-agnostic encode or decode bytestream to or from little or big endian.
110 General byte order swapping functions.
113 @externallyDefinedApi
119 General byte order swapping functions.
122 @externallyDefinedApi
128 General byte order swapping functions.
131 @externallyDefinedApi
136 Macro returning a integer in the system's native byte order converted to big endian byte order.
137 The return value will be the same as the argument on big endian systems.
140 @externallyDefinedApi
146 Macro returning a integer in the system's native byte order converted to big endian byte order.
147 The return value will be the same as the argument on big endian systems.
150 @externallyDefinedApi
155 Macro returning a integer in the system's native byte order converted to big endian byte order.
156 The return value will be the same as the argument on big endian systems.
159 @externallyDefinedApi
165 Macro returning a integer in the system's native byte order converted to big endian byte order.
166 The return value will be the same as the argument on big endian systems.
169 @externallyDefinedApi
175 Macro returning a integer in the system's native byte order converted to big endian byte order.
176 The return value will be the same as the argument on big endian systems.
179 @externallyDefinedApi
184 Macro returning a integer in the system's native byte order converted to big endian byte order.
185 The return value will be the same as the argument on big endian systems.
188 @externallyDefinedApi
193 Macro returning a big endian byte ordered integer converted to the system's native byte order.
194 The return value will be the same as the argument on big endian systems.
197 @externallyDefinedApi
202 Macro returning a big endian byte ordered integer converted to the system's native byte order.
203 The return value will be the same as the argument on big endian systems.
206 @externallyDefinedApi
211 Macro returning a big endian byte ordered integer converted to the system's native byte order.
212 The return value will be the same as the argument on big endian systems.
215 @externallyDefinedApi
220 Macro returning a little endian byte ordered integer converted to the system's native byte order.
221 The return value will be the same as the argument on little endian systems.
224 @externallyDefinedApi
229 Macro returning a little endian byte ordered integer converted to the system's native byte order.
230 The return value will be the same as the argument on little endian systems.
233 @externallyDefinedApi
238 Macro returning a little endian byte ordered integer converted to the system's native byte order.
239 The return value will be the same as the argument on little endian systems.
242 @externallyDefinedApi