Template Function tap::arch::convertFromBigEndian
Defined in File endianness_wrappers.hpp
Function Documentation
-
template<typename T>
void tap::arch::convertFromBigEndian(T *data, const uint8_t *bytesIn) Converts a byte array from big endian and stores its numeric value in the given number reference. If the current architecture is in big endian, the bytes are maintained in the current order. If the current architecture is in little endian, the bytes are read and stored in reverse order.
- Template Parameters:
T – the type to be read.
- Parameters:
data – [out] the reference to the number in which the byte array’s numeric representation will be stored
bytesIn – [in] the byte array to be read from big endian