Template Function colab::addIntegerToBuffer

Function Documentation

template<typename T>
void colab::addIntegerToBuffer(UINT8 *buffer, UINT16 &pos, T intValue)

Accepts all integer types (any bit width and sign). If width of intValue is greater than given type T, the higher bytes are truncated.

The intValue will be stored in BigEndian byte order (as required for CoLaB). pos points then to the first byte of the next data field..