#include "SharedConfig.h"
#include "DetourAlloc.h"
Go to the source code of this file.
bool dtNavMeshDataSwapEndian |
( |
unsigned char * |
data, |
|
|
const int |
dataSize |
|
) |
| |
Swaps endianess 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 endianess already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianess to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianess.
bool dtNavMeshHeaderSwapEndian |
( |
unsigned char * |
data, |
|
|
const int |
dataSize |
|
) |
| |
Swaps the endianess of the tile data's header (dtMeshHeader).
- Parameters
-
[in,out] | data | The tile data array. |
[in] | dataSize | The size of the data array. |