Okay, so C++ has no specific byte class, but what they do have is an unsigned char class to convert ints/doubles/floats to binary/bytes.
In trying to convert some Java to C++, I am trying to keep some of the function signatures the same or close to the same, and in so doing, have realized that if you have an unsigned char*, you can't actually get the size of the number of bytes this represents. It was an easy solution to convert though because I was able to do memcpy of all the primitives into the char* and voila, done.
This is a problem. So now I am thinking of doing a
vector<unsigned char> but cant figure out how to copy a float into the vector to get each byte.
Any suggestions?