5#ifndef MRAS_SERIALIZERS_H 
    6#define MRAS_SERIALIZERS_H 
   17template<
typename input_type>
 
   18void toByteArray(uint8_t* outputByteArray, input_type inputData) {
 
   20    auto* startPtr = (uint8_t*)(&inputData);
 
   23    for (
size_t i = 0; i < 
sizeof(inputData); i++) {
 
   24        outputByteArray[i] = *(startPtr + i);
 
   34template<
typename output_type>
 
   35output_type fromByteArray(
const uint8_t* byteArray) {
 
   36    return *((output_type*) byteArray);