Swap the byte ordering of a binary object/array from short-endian to long-endian, or vice-versa.
long hfzByteSwap(void* pData, unsigned long DataSize);
| 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. |
LIBHFZ_STATUS_OK if the byte order was swapped successfully, and otherwise an error code. Use hfzGetErrorStr to retrieve the error description.
None.