L3DT documentation
Large 3D terrain generator

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 hfzGetErrorStr to retrieve the error description.

Comments

None.

 
libhfz/functions/hfzbyteswap.txt · Last modified: 2017/08/31 06:44 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki