dtNavMeshDataSwapEndian

Swaps endianess of the tile data.

Windows
MacOS
Linux

Warnings

  • 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.

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshBuilder.h

Include

#include "Detour/DetourNavMeshBuilder.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshBuilder.cpp

Syntax

bool dtNavMeshDataSwapEndian
(
    unsigned char * data,
    const int dataSize
)

Remarks

Swaps endianess of the tile data.

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.

Parameters

Parameter

Description

data

The tile data array.

dataSize

The size of the data array.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss