Go to the source code of this file.
◆ dtNavMeshDataSwapEndian()
bool dtNavMeshDataSwapEndian |
( |
unsigned char * |
data, |
|
|
const int |
dataSize |
|
) |
| |
Swaps endianness of the tile data.
- Parameters
-
[in,out] | data | The tile data array. |
[in] | dataSize | The size of the data array. |
- Warning
- This function assumes that the header is in the correct endianness already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianness to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianness.
◆ dtNavMeshHeaderSwapEndian()
bool dtNavMeshHeaderSwapEndian |
( |
unsigned char * |
data, |
|
|
const int |
dataSize |
|
) |
| |
Swaps the endianness of the tile data's header (dtMeshHeader).
- Parameters
-
[in,out] | data | The tile data array. |
[in] | dataSize | The size of the data array. |