Template Function tap::arch::convertToBigEndian
Defined in File endianness_wrappers.hpp
Function Documentation
-
template<typename T>
void tap::arch::convertToBigEndian(T data, uint8_t *bytesOut) Converts a number into a byte array in big endian. 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 – [in] the number to be read
bytesOut – [out] the reference to the array in which the bytes will be stored