ByteOrder Class Reference

#include <byteorder.h>

Static Public Member Functions

template<typename T >
static MAXON_ATTRIBUTE_FORCE_INLINEReadValue (const T &valueAtAddr, BYTEORDER order)
 

Member Function Documentation

◆ ReadValue()

static MAXON_ATTRIBUTE_FORCE_INLINE T ReadValue ( const T &  valueAtAddr,
BYTEORDER  order 
)
static

Reads a value from valueAtAddr and converts the byte order if necessary.

Parameters
[in]valueAtAddrPointer to the data.
[in]orderByte order of the data.
Returns
Value in system byte order.