Template Function tap::arch::dataToByteArray

Function Documentation

template<typename T>
inline void tap::arch::dataToByteArray(T data, uint8_t *bytesOut, bool forward)

Reads a number and stores its byte array representation in the given array reference.

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.

  • forward[in] an indication of if the number’s bytes should be read forwards or not.