PCL
Endianness Conversion and Detection Functions

Functions

uint16 pcl::BigToLittleEndian (uint16 x)
 
uint32 pcl::BigToLittleEndian (uint32 x)
 
uint64 pcl::BigToLittleEndian (uint64 x)
 
constexpr bool pcl::IsBigEndianMachine ()
 
constexpr bool pcl::IsLittleEndianMachine ()
 
template<typename T >
pcl::LittleToBigEndian (T x)
 

Detailed Description

Function Documentation

◆ BigToLittleEndian() [1/3]

uint16 pcl::BigToLittleEndian ( uint16  x)
inline

Converts a 16-bit unsigned integer from big endian to little endian byte storage order.

Definition at line 76 of file EndianConversions.h.

Referenced by pcl::BigToLittleEndian().

◆ BigToLittleEndian() [2/3]

uint32 pcl::BigToLittleEndian ( uint32  x)
inline

Converts a 32-bit unsigned integer from big endian to little endian byte storage order.

Definition at line 87 of file EndianConversions.h.

References pcl::RotL(), and pcl::RotR().

◆ BigToLittleEndian() [3/3]

uint64 pcl::BigToLittleEndian ( uint64  x)
inline

Converts a 64-bit unsigned integer from big endian to little endian byte storage order.

Definition at line 99 of file EndianConversions.h.

References pcl::BigToLittleEndian().

◆ IsBigEndianMachine()

constexpr bool pcl::IsBigEndianMachine ( )
constexpr

Returns true iff the caller is running on a big-endian architecture.

Definition at line 154 of file EndianConversions.h.

◆ IsLittleEndianMachine()

constexpr bool pcl::IsLittleEndianMachine ( )
constexpr

Returns true iff the caller is running on a little-endian architecture.

Definition at line 144 of file EndianConversions.h.

◆ LittleToBigEndian()

template<typename T >
T pcl::LittleToBigEndian ( x)
inline

A convenience synonym function for little-to-big endian conversions, which we define for the sake of code legibility. It is obviously equivalent to BigToLittleEndian( x ).

Definition at line 111 of file EndianConversions.h.