okay guys I\'m seeing question from persons asking how to convert byte arrays to int, string, Stream, etc... and the answers to which
int
string
Stream
c++ template version :
template void fromByteArray(T& t, byte *bytes) { t = *(T*)bytes; }; template byte * toByteArray(T& t) { return (byte*)&t; };