C++ (Qt)dbfHeaderSize=dbfInfo.at(8)+ (dbfInfo.at(9)<< 8);
C++ (Qt)dbfHeaderSize = (dbfInfo.at(9)<< 8) & 0xFF00;dbfHeaderSize += dbfInfo.at(8);
QDataStream<<dbfInfo.at(8);
C++ (Qt)inline unsigned short MkUShort( unsigned short lo. unsigned short hi ){ return lo | (hi << 8);}
C++ (Qt)void DBFRedactor::writeHeader(){ if (m_openMode != Write) return; char *c = new char[33]; for (int i = 0; i < 32; i++) c[i] = 0; char *tmp = c; c[0] = 0x3; c[1] = header.lastUpdated.toString("yy").toShort(); c[2] = header.lastUpdated.month(); c[3] = header.lastUpdated.day(); tmp += 4; *(qint32*)tmp = header.recordsCount; tmp += 4; *(qint16*)tmp = header.firstRecordPos; tmp += 2; *(qint16*)tmp = header.recordLenght; m_file.seek(0); m_file.write(c, 32); delete [] c;}