Go to the documentation of this file.
10#include <QtCore/QtGlobal>
33 qint8 m_firstBitInByte[256];
41 quint16* words = (quint16*)&bits;
42 quint8* bytes = (quint8*)&bits;
45 return int(m_firstBitInByte[bytes[0]]);
48 return int(m_firstBitInByte[bytes[1]]);
50 else if (words[1] != 0){
52 return int(m_firstBitInByte[bytes[2]]);
55 return int(m_firstBitInByte[bytes[3]]);
Helper class for bits manipulations.
int GetFirstBitIndex(quint32 bits) const
Return index of first bit in byte.
static CBitManip instance
© Witold Gantzke and Kirill Lepskiy