I am trying to convert a short array into a bytearray in qt.
is there any function available to do the casting.
if i have to use const char * for conversion how should i do it.
and is there any better way than to use reinterpret cast
Thanks in advance.
You can convert an array of short to bytes simply by casting a byte pointer to the short array
then use the pointer to go through all the bytes in the array where you copy the
*pto a byte array if u wish.