====== hfzByteSwap ====== ===== Description ===== Swap the byte ordering of a binary object/array from short-endian to long-endian, or vice-versa. ===== Function prototype ===== long hfzByteSwap(void* pData, unsigned long DataSize); ===== Arguments ===== ^ Name ^ Type ^ Comment ^ | pData | void* | A pointer to the object or array whose endianness is to be swapped. | | DataSize | unsigned long | The size, in bytes, of the object or array addressed by //pData//. | ===== Return value ===== LIBHFZ_STATUS_OK if the byte order was swapped successfully, and otherwise an error code. Use [[libhfz:functions:hfzGetErrorStr]] to retrieve the error description. ===== Comments ===== None.