C++ (Qt)QByteArray::append( QByteArray::fromRawData( ... ) )
quint64 x;..............................const char* xx = (char**)(&x);QByteArray ba (xx, 8);
quint64 b = 123456789; char* xx = new char[8]; xx = (char*)(&b); QByteArray ba(xx, 8); char* x1 = new char[8]; x1[0] = ba[0]; x1[1] = ba[1]; x1[2] = ba[2]; x1[3] = ba[3]; x1[4] = ba[4]; x1[5] = ba[5]; x1[6] = ba[6]; x1[7] = ba[7]; quint64* a = new quint64; a = (quint64*)(x1);
C++ (Qt)qint64 iVal;QbyteArray ba;char* pBA = ba.data(); memset(pBA, &iVal, 8); // memset(pBA+seek, &iVal, 8);
C++ (Qt) quint64 b = 123456789; QByteArray ba; ba.append( reinterpret_cast< const char* >( &b ), sizeof( b ) ); b = *( reinterpret_cast< const quint64* >( ba.data() ) );
C++ (Qt)quint64 b = 123456789;QByteArray ba; ba.append( reinterpret_cast< const char* >( &b ), sizeof( b ) ); b = *( reinterpret_cast< const typeof (b)* >( ba.data() ) );