Template Function tap::arch::byteArrayToData

Function Documentation

template<typename T>
inline void tap::arch::byteArrayToData(T *data, const uint8_t *bytesIn, bool forward)

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

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

  • forward[in] an indication of if the byte array should be read forwards or not