Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Namespaces | Functions
endian.h File Reference

Endian manipulation functions. More...

#include <wfio/type.h>

Go to the source code of this file.

Namespaces

 wfio
 The root namespace for WFIO.
 

Functions

WFIO_DLL void wfio_convertEndianSI16V2 (const wfio_sint16_t *src, wfio_endian_t srcEndian, wfio_sint16_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 16-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI16V2 (const wfio_sint16_t *src, wfio_sint16_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 16-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI16V2 (const wfio_sint16_t *src, wfio_sint16_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 16-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianSI16V (wfio_sint16_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 16-bit signed integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI16V (wfio_sint16_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 16-bit signed integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI16V (wfio_sint16_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 16-bit signed integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_sint16_t wfio_convertEndianSI16 (wfio_sint16_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 16-bit signed integer. More...
 
WFIO_ALWAYS_INLINE wfio_sint16_t wfio_fromHostEndianSI16 (wfio_sint16_t x, wfio_endian_t destEndian)
 Convert a 16-bit signed integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_sint16_t wfio_toHostEndianSI16 (wfio_sint16_t x, wfio_endian_t srcEndian)
 Convert a 16-bit signed integer from src to that of the host. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI16V2 (const wfio_uint16_t *src, wfio_endian_t srcEndian, wfio_uint16_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 16-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI16V2 (const wfio_uint16_t *src, wfio_uint16_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 16-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI16V2 (const wfio_uint16_t *src, wfio_uint16_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 16-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI16V (wfio_uint16_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 16-bit unsigned integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI16V (wfio_uint16_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 16-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI16V (wfio_uint16_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 16-bit unsigned integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_uint16_t wfio_convertEndianUI16 (wfio_uint16_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 16-bit unsigned integer. More...
 
WFIO_ALWAYS_INLINE wfio_uint16_t wfio_fromHostEndianUI16 (wfio_uint16_t x, wfio_endian_t destEndian)
 Convert a 16-bit unsigned integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_uint16_t wfio_toHostEndianUI16 (wfio_uint16_t x, wfio_endian_t srcEndian)
 Convert a 16-bit unsigned integer from src to that of the host. More...
 
WFIO_DLL void wfio_convertEndianSI32V2 (const wfio_sint32_t *src, wfio_endian_t srcEndian, wfio_sint32_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 32-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI32V2 (const wfio_sint32_t *src, wfio_sint32_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 32-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI32V2 (const wfio_sint32_t *src, wfio_sint32_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 32-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianSI32V (wfio_sint32_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 32-bit signed integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI32V (wfio_sint32_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 32-bit signed integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI32V (wfio_sint32_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 32-bit signed integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_sint32_t wfio_convertEndianSI32 (wfio_sint32_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 32-bit signed integer. More...
 
WFIO_ALWAYS_INLINE wfio_sint32_t wfio_fromHostEndianSI32 (wfio_sint32_t x, wfio_endian_t destEndian)
 Convert a 32-bit signed integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_sint32_t wfio_toHostEndianSI32 (wfio_sint32_t x, wfio_endian_t srcEndian)
 Convert a 32-bit signed integer from src to that of the host. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI32V2 (const wfio_uint32_t *src, wfio_endian_t srcEndian, wfio_uint32_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 32-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI32V2 (const wfio_uint32_t *src, wfio_uint32_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 32-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI32V2 (const wfio_uint32_t *src, wfio_uint32_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 32-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI32V (wfio_uint32_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 32-bit unsigned integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI32V (wfio_uint32_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 32-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI32V (wfio_uint32_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 32-bit unsigned integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_uint32_t wfio_convertEndianUI32 (wfio_uint32_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 32-bit unsigned integer. More...
 
WFIO_ALWAYS_INLINE wfio_uint32_t wfio_fromHostEndianUI32 (wfio_uint32_t x, wfio_endian_t destEndian)
 Convert a 32-bit unsigned integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_uint32_t wfio_toHostEndianUI32 (wfio_uint32_t x, wfio_endian_t srcEndian)
 Convert a 32-bit unsigned integer from src to that of the host. More...
 
WFIO_DLL void wfio_convertEndianSI64V2 (const wfio_sint64_t *src, wfio_endian_t srcEndian, wfio_sint64_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 64-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI64V2 (const wfio_sint64_t *src, wfio_sint64_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 64-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI64V2 (const wfio_sint64_t *src, wfio_sint64_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 64-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianSI64V (wfio_sint64_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 64-bit signed integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI64V (wfio_sint64_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 64-bit signed integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianSI64V (wfio_sint64_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 64-bit signed integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_sint64_t wfio_convertEndianSI64 (wfio_sint64_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 64-bit signed integer. More...
 
WFIO_ALWAYS_INLINE wfio_sint64_t wfio_fromHostEndianSI64 (wfio_sint64_t x, wfio_endian_t destEndian)
 Convert a 64-bit signed integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_sint64_t wfio_toHostEndianSI64 (wfio_sint64_t x, wfio_endian_t srcEndian)
 Convert a 64-bit signed integer from src to that of the host. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI64V2 (const wfio_uint64_t *src, wfio_endian_t srcEndian, wfio_uint64_t *dest, wfio_endian_t destEndian, size_t len)
 Perform endianness conversion on 64-bit signed integers in src to be stored in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI64V2 (const wfio_uint64_t *src, wfio_uint64_t *dest, wfio_endian_t destEndian, size_t len)
 Convert 64-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI64V2 (const wfio_uint64_t *src, wfio_uint64_t *dest, wfio_endian_t srcEndian, size_t len)
 Convert 64-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
WFIO_ALWAYS_INLINE void wfio_convertEndianUI64V (wfio_uint64_t *buf, wfio_endian_t src, wfio_endian_t dest, size_t len)
 Perform endianness conversion on 64-bit unsigned integers in buf. More...
 
WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI64V (wfio_uint64_t *buf, wfio_endian_t destEndian, size_t len)
 Convert 64-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
WFIO_ALWAYS_INLINE void wfio_toHostEndianUI64V (wfio_uint64_t *buf, wfio_endian_t srcEndian, size_t len)
 Convert 64-bit unsigned integers in buf from srcEndian to that of the host. More...
 
WFIO_ALWAYS_INLINE wfio_uint64_t wfio_convertEndianUI64 (wfio_uint64_t x, wfio_endian_t src, wfio_endian_t dest)
 Perform endianness conversion on a 64-bit unsigned integer. More...
 
WFIO_ALWAYS_INLINE wfio_uint64_t wfio_fromHostEndianUI64 (wfio_uint64_t x, wfio_endian_t destEndian)
 Convert a 64-bit unsigned integers from the host endianness to that of dest. More...
 
WFIO_ALWAYS_INLINE wfio_uint64_t wfio_toHostEndianUI64 (wfio_uint64_t x, wfio_endian_t srcEndian)
 Convert a 64-bit unsigned integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::sint16_t *src, wfio::endian_t srcEndian, wfio::sint16_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 16-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::sint16_t *src, wfio::sint16_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 16-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::sint16_t *src, wfio::sint16_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 16-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::sint16_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 16-bit signed integers in buf. More...
 
void wfio::fromHostEndian (wfio::sint16_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 16-bit signed integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::sint16_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 16-bit signed integers in buf from srcEndian to that of the host. More...
 
wfio_sint16_t wfio::convertEndian (wfio::sint16_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 16-bit signed integer. More...
 
wfio_sint16_t wfio::fromHostEndian (wfio::sint16_t x, wfio::endian_t destEndian) throw ()
 Convert a 16-bit signed integers from the host endianness to that of dest. More...
 
wfio_sint16_t wfio::toHostEndian (wfio::sint16_t x, wfio::endian_t srcEndian) throw ()
 Convert a 16-bit signed integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::uint16_t *src, wfio::endian_t srcEndian, wfio::uint16_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 16-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::uint16_t *src, wfio::uint16_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 16-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::uint16_t *src, wfio::uint16_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 16-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::uint16_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 16-bit unsigned integers in buf. More...
 
void wfio::fromHostEndian (wfio::uint16_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 16-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::uint16_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 16-bit unsigned integers in buf from srcEndian to that of the host. More...
 
wfio_uint16_t wfio::convertEndian (wfio::uint16_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 16-bit unsigned integer. More...
 
wfio_uint16_t wfio::fromHostEndian (wfio::uint16_t x, wfio::endian_t destEndian) throw ()
 Convert a 16-bit unsigned integers from the host endianness to that of dest. More...
 
wfio_uint16_t wfio::toHostEndian (wfio::uint16_t x, wfio::endian_t srcEndian) throw ()
 Convert a 16-bit unsigned integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::sint32_t *src, wfio::endian_t srcEndian, wfio::sint32_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 32-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::sint32_t *src, wfio::sint32_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 32-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::sint32_t *src, wfio::sint32_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 32-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::sint32_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 32-bit signed integers in buf. More...
 
void wfio::fromHostEndian (wfio::sint32_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 32-bit signed integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::sint32_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 32-bit signed integers in buf from srcEndian to that of the host. More...
 
wfio_sint32_t wfio::convertEndian (wfio::sint32_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 32-bit signed integer. More...
 
wfio_sint32_t wfio::fromHostEndian (wfio::sint32_t x, wfio::endian_t destEndian) throw ()
 Convert a 32-bit signed integers from the host endianness to that of dest. More...
 
wfio_sint32_t wfio::toHostEndian (wfio::sint32_t x, wfio::endian_t srcEndian) throw ()
 Convert a 32-bit signed integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::uint32_t *src, wfio::endian_t srcEndian, wfio::uint32_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 32-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::uint32_t *src, wfio::uint32_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 32-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::uint32_t *src, wfio::uint32_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 32-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::uint32_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 32-bit unsigned integers in buf. More...
 
void wfio::fromHostEndian (wfio::uint32_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 32-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::uint32_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 32-bit unsigned integers in buf from srcEndian to that of the host. More...
 
wfio_uint32_t wfio::convertEndian (wfio::uint32_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 32-bit unsigned integer. More...
 
wfio_uint32_t wfio::fromHostEndian (wfio::uint32_t x, wfio::endian_t destEndian) throw ()
 Convert a 32-bit unsigned integers from the host endianness to that of dest. More...
 
wfio_uint32_t wfio::toHostEndian (wfio::uint32_t x, wfio::endian_t srcEndian) throw ()
 Convert a 32-bit unsigned integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::sint64_t *src, wfio::endian_t srcEndian, wfio::sint64_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 64-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::sint64_t *src, wfio::sint64_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 64-bit signed integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::sint64_t *src, wfio::sint64_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 64-bit signed integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::sint64_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 64-bit signed integers in buf. More...
 
void wfio::fromHostEndian (wfio::sint64_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 64-bit signed integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::sint64_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 64-bit signed integers in buf from srcEndian to that of the host. More...
 
wfio_sint64_t wfio::convertEndian (wfio::sint64_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 64-bit signed integer. More...
 
wfio_sint64_t wfio::fromHostEndian (wfio::sint64_t x, wfio::endian_t destEndian) throw ()
 Convert a 64-bit signed integers from the host endianness to that of dest. More...
 
wfio_sint64_t wfio::toHostEndian (wfio::sint64_t x, wfio::endian_t srcEndian) throw ()
 Convert a 64-bit signed integer from src to that of the host. More...
 
void wfio::convertEndian (const wfio::uint64_t *src, wfio::endian_t srcEndian, wfio::uint64_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Perform endianness conversion on 64-bit signed integers in src to be stored in dest. More...
 
void wfio::fromHostEndian (const wfio::uint64_t *src, wfio::uint64_t *dest, wfio::endian_t destEndian, size_t len) throw ()
 Convert 64-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest. More...
 
void wfio::toHostEndian (const wfio::uint64_t *src, wfio::uint64_t *dest, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 64-bit unsigned integers in src from srcEndian to that of the host and store them in dest. More...
 
void wfio::convertEndian (wfio::uint64_t *buf, wfio::endian_t src, wfio::endian_t dest, size_t len) throw ()
 Perform endianness conversion on 64-bit unsigned integers in buf. More...
 
void wfio::fromHostEndian (wfio::uint64_t *buf, wfio::endian_t destEndian, size_t len) throw ()
 Convert 64-bit unsigned integers in buf from the host endianness to that of destEndian. More...
 
void wfio::toHostEndian (wfio::uint64_t *buf, wfio::endian_t srcEndian, size_t len) throw ()
 Convert 64-bit unsigned integers in buf from srcEndian to that of the host. More...
 
wfio_uint64_t wfio::convertEndian (wfio::uint64_t x, wfio::endian_t src, wfio::endian_t dest) throw ()
 Perform endianness conversion on a 64-bit unsigned integer. More...
 
wfio_uint64_t wfio::fromHostEndian (wfio::uint64_t x, wfio::endian_t destEndian) throw ()
 Convert a 64-bit unsigned integers from the host endianness to that of dest. More...
 
wfio_uint64_t wfio::toHostEndian (wfio::uint64_t x, wfio::endian_t srcEndian) throw ()
 Convert a 64-bit unsigned integer from src to that of the host. More...
 

Detailed Description

Endian manipulation functions.

Author
Phillip Kilgore
Since
0.0.1

Function Documentation

◆ wfio_convertEndianSI16()

WFIO_ALWAYS_INLINE wfio_sint16_t wfio_convertEndianSI16 ( wfio_sint16_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 16-bit signed integer.

This function can be used to convert the endianness of a 16-bit signed integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianSI16V()

WFIO_ALWAYS_INLINE void wfio_convertEndianSI16V ( wfio_sint16_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 16-bit signed integers in buf.

This function can be used to convert the endianness of a vector of 16-bit signed integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianSI16V2()

WFIO_DLL void wfio_convertEndianSI16V2 ( const wfio_sint16_t *  src,
wfio_endian_t  srcEndian,
wfio_sint16_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 16-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 16-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_convertEndianSI32()

WFIO_ALWAYS_INLINE wfio_sint32_t wfio_convertEndianSI32 ( wfio_sint32_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 32-bit signed integer.

This function can be used to convert the endianness of a 32-bit signed integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianSI32V()

WFIO_ALWAYS_INLINE void wfio_convertEndianSI32V ( wfio_sint32_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 32-bit signed integers in buf.

This function can be used to convert the endianness of a vector of 32-bit signed integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianSI32V2()

WFIO_DLL void wfio_convertEndianSI32V2 ( const wfio_sint32_t *  src,
wfio_endian_t  srcEndian,
wfio_sint32_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 32-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 32-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_convertEndianSI64()

WFIO_ALWAYS_INLINE wfio_sint64_t wfio_convertEndianSI64 ( wfio_sint64_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 64-bit signed integer.

This function can be used to convert the endianness of a 64-bit signed integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianSI64V()

WFIO_ALWAYS_INLINE void wfio_convertEndianSI64V ( wfio_sint64_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 64-bit signed integers in buf.

This function can be used to convert the endianness of a vector of 64-bit signed integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianSI64V2()

WFIO_DLL void wfio_convertEndianSI64V2 ( const wfio_sint64_t *  src,
wfio_endian_t  srcEndian,
wfio_sint64_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 64-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 64-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_convertEndianUI16()

WFIO_ALWAYS_INLINE wfio_uint16_t wfio_convertEndianUI16 ( wfio_uint16_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 16-bit unsigned integer.

This function can be used to convert the endianness of a 16-bit unsigned integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianUI16V()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI16V ( wfio_uint16_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 16-bit unsigned integers in buf.

This function can be used to convert the endianness of a vector of 16-bit unsigned integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianUI16V2()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI16V2 ( const wfio_uint16_t *  src,
wfio_endian_t  srcEndian,
wfio_uint16_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 16-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 16-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_convertEndianUI32()

WFIO_ALWAYS_INLINE wfio_uint32_t wfio_convertEndianUI32 ( wfio_uint32_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 32-bit unsigned integer.

This function can be used to convert the endianness of a 32-bit unsigned integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianUI32V()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI32V ( wfio_uint32_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 32-bit unsigned integers in buf.

This function can be used to convert the endianness of a vector of 32-bit unsigned integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianUI32V2()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI32V2 ( const wfio_uint32_t *  src,
wfio_endian_t  srcEndian,
wfio_uint32_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 32-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 32-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_convertEndianUI64()

WFIO_ALWAYS_INLINE wfio_uint64_t wfio_convertEndianUI64 ( wfio_uint64_t  x,
wfio_endian_t  src,
wfio_endian_t  dest 
)

Perform endianness conversion on a 64-bit unsigned integer.

This function can be used to convert the endianness of a 64-bit unsigned integer.

Parameters
xAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
Returns
The converted value of x.

◆ wfio_convertEndianUI64V()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI64V ( wfio_uint64_t *  buf,
wfio_endian_t  src,
wfio_endian_t  dest,
size_t  len 
)

Perform endianness conversion on 64-bit unsigned integers in buf.

This function can be used to convert the endianness of a vector of 64-bit unsigned integers. The conversion occurs in place.

Parameters
bufAn array of integers to convert the endianess of.
srcThe current endianness of the buf.
destThe desired endianness of the buf.
lenThe number of integers to process.
Precondition
buf is not null
Postcondition
The values in buf shall have their endiannes converted from the values originally passed.

◆ wfio_convertEndianUI64V2()

WFIO_ALWAYS_INLINE void wfio_convertEndianUI64V2 ( const wfio_uint64_t *  src,
wfio_endian_t  srcEndian,
wfio_uint64_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Perform endianness conversion on 64-bit signed integers in src to be stored in dest.

This function can be used to convert the endianness of a vector of 64-bit signed integers. If the source and destination are different, then the

Parameters
srcAn array of integers to read from.
srcEndianThe endianness of the source vector.
destAn array of integers to write to.
destEndianThe desired endianness of the destination vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI16()

WFIO_ALWAYS_INLINE wfio_sint16_t wfio_fromHostEndianSI16 ( wfio_sint16_t  x,
wfio_endian_t  destEndian 
)

Convert a 16-bit signed integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianSI16V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI16V ( wfio_sint16_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 16-bit signed integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI16V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI16V2 ( const wfio_sint16_t *  src,
wfio_sint16_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 16-bit signed integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI32()

WFIO_ALWAYS_INLINE wfio_sint32_t wfio_fromHostEndianSI32 ( wfio_sint32_t  x,
wfio_endian_t  destEndian 
)

Convert a 32-bit signed integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianSI32V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI32V ( wfio_sint32_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 32-bit signed integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI32V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI32V2 ( const wfio_sint32_t *  src,
wfio_sint32_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 32-bit signed integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI64()

WFIO_ALWAYS_INLINE wfio_sint64_t wfio_fromHostEndianSI64 ( wfio_sint64_t  x,
wfio_endian_t  destEndian 
)

Convert a 64-bit signed integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianSI64V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI64V ( wfio_sint64_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 64-bit signed integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianSI64V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianSI64V2 ( const wfio_sint64_t *  src,
wfio_sint64_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 64-bit signed integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI16()

WFIO_ALWAYS_INLINE wfio_uint16_t wfio_fromHostEndianUI16 ( wfio_uint16_t  x,
wfio_endian_t  destEndian 
)

Convert a 16-bit unsigned integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianUI16V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI16V ( wfio_uint16_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 16-bit unsigned integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI16V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI16V2 ( const wfio_uint16_t *  src,
wfio_uint16_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 16-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI32()

WFIO_ALWAYS_INLINE wfio_uint32_t wfio_fromHostEndianUI32 ( wfio_uint32_t  x,
wfio_endian_t  destEndian 
)

Convert a 32-bit unsigned integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianUI32V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI32V ( wfio_uint32_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 32-bit unsigned integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI32V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI32V2 ( const wfio_uint32_t *  src,
wfio_uint32_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 32-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI64()

WFIO_ALWAYS_INLINE wfio_uint64_t wfio_fromHostEndianUI64 ( wfio_uint64_t  x,
wfio_endian_t  destEndian 
)

Convert a 64-bit unsigned integers from the host endianness to that of dest.

Parameters
xAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
Returns
The converted value of x.

◆ wfio_fromHostEndianUI64V()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI64V ( wfio_uint64_t *  buf,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 64-bit unsigned integers in buf from the host endianness to that of destEndian.

Parameters
bufAn array of integers to convert.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_fromHostEndianUI64V2()

WFIO_ALWAYS_INLINE void wfio_fromHostEndianUI64V2 ( const wfio_uint64_t *  src,
wfio_uint64_t *  dest,
wfio_endian_t  destEndian,
size_t  len 
)

Convert 64-bit unsigned integers in src from the host endianness to that of destEndian and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
destEndianThe desired endianness of dest.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the destination endianness.

◆ wfio_toHostEndianSI16()

WFIO_ALWAYS_INLINE wfio_sint16_t wfio_toHostEndianSI16 ( wfio_sint16_t  x,
wfio_endian_t  srcEndian 
)

Convert a 16-bit signed integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianSI16V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI16V ( wfio_sint16_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 16-bit signed integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianSI16V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI16V2 ( const wfio_sint16_t *  src,
wfio_sint16_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 16-bit signed integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.

◆ wfio_toHostEndianSI32()

WFIO_ALWAYS_INLINE wfio_sint32_t wfio_toHostEndianSI32 ( wfio_sint32_t  x,
wfio_endian_t  srcEndian 
)

Convert a 32-bit signed integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianSI32V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI32V ( wfio_sint32_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 32-bit signed integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianSI32V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI32V2 ( const wfio_sint32_t *  src,
wfio_sint32_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 32-bit signed integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.

◆ wfio_toHostEndianSI64()

WFIO_ALWAYS_INLINE wfio_sint64_t wfio_toHostEndianSI64 ( wfio_sint64_t  x,
wfio_endian_t  srcEndian 
)

Convert a 64-bit signed integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianSI64V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI64V ( wfio_sint64_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 64-bit signed integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianSI64V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianSI64V2 ( const wfio_sint64_t *  src,
wfio_sint64_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 64-bit signed integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.

◆ wfio_toHostEndianUI16()

WFIO_ALWAYS_INLINE wfio_uint16_t wfio_toHostEndianUI16 ( wfio_uint16_t  x,
wfio_endian_t  srcEndian 
)

Convert a 16-bit unsigned integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianUI16V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI16V ( wfio_uint16_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 16-bit unsigned integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianUI16V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI16V2 ( const wfio_uint16_t *  src,
wfio_uint16_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 16-bit unsigned integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.

◆ wfio_toHostEndianUI32()

WFIO_ALWAYS_INLINE wfio_uint32_t wfio_toHostEndianUI32 ( wfio_uint32_t  x,
wfio_endian_t  srcEndian 
)

Convert a 32-bit unsigned integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianUI32V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI32V ( wfio_uint32_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 32-bit unsigned integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianUI32V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI32V2 ( const wfio_uint32_t *  src,
wfio_uint32_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 32-bit unsigned integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.

◆ wfio_toHostEndianUI64()

WFIO_ALWAYS_INLINE wfio_uint64_t wfio_toHostEndianUI64 ( wfio_uint64_t  x,
wfio_endian_t  srcEndian 
)

Convert a 64-bit unsigned integer from src to that of the host.

Parameters
xAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
Returns
The converted value of x.

◆ wfio_toHostEndianUI64V()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI64V ( wfio_uint64_t *  buf,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 64-bit unsigned integers in buf from srcEndian to that of the host.

Parameters
bufAn array of integers to read convert.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
buf is not null.
Postcondition
The values in buf shall be in the host endianness.

◆ wfio_toHostEndianUI64V2()

WFIO_ALWAYS_INLINE void wfio_toHostEndianUI64V2 ( const wfio_uint64_t *  src,
wfio_uint64_t *  dest,
wfio_endian_t  srcEndian,
size_t  len 
)

Convert 64-bit unsigned integers in src from srcEndian to that of the host and store them in dest.

Parameters
srcAn array of integers to read from.
destAn array of integers to write to.
srcEndianThe endianness of the source vector.
lenThe number of integers to process.
Precondition
Neither src or dest are null.
Postcondition
The values in dest shall be in the host endianness.