Wheefun I/O Library
0.0.5
Useful I/O Primitives.
|
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... | |
Endian manipulation functions.
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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
x
. 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.
buf | An array of integers to convert the endianess of. |
src | The current endianness of the buf . |
dest | The desired endianness of the buf . |
len | The number of integers to process. |
buf
is not null buf
shall have their endiannes converted from the values originally passed. 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
src | An array of integers to read from. |
srcEndian | The endianness of the source vector. |
dest | An array of integers to write to. |
destEndian | The desired endianness of the destination vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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
.
x | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
x
. 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
.
buf | An array of integers to convert. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
dest
shall be in the destination endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
destEndian | The desired endianness of dest . |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the destination endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness. 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.
x | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
x
. 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.
buf | An array of integers to read convert. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
buf
shall be in the host endianness. 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
.
src | An array of integers to read from. |
dest | An array of integers to write to. |
srcEndian | The endianness of the source vector. |
len | The number of integers to process. |
src
or dest
are null. dest
shall be in the host endianness.