A function to handle multiple datatypes

In that case, use pointer to an unsigned char + sizeof.