C++ (Qt) QDataStream stream(&bytearr,QIODevice::ReadWrite); QString m="qwerty"; stream << m; QString c; stream >> c;
C++ (Qt) QDataStream stream(&bytearr,QIODevice::ReadWrite); QString m="qwerty"; stream << m; stream.device ()->seek (0); QString c; stream >> c;