PDA

View Full Version : Search for Bytes in QByteArray in certain order



brasco2k
20th September 2012, 15:13
hi guys,

i try to implement something like a signature scanner for certain file types. therefore, it is important i can search for certain bytestrings in a specific order. does anybody of u guys know if it is possible and maybe how to do it?

thank u very much in advance
tom

ChrisW67
22nd September 2012, 11:09
QByteArray::contains() and QByteArray::indexOf() look like good place to start.

wysota
22nd September 2012, 14:22
and QByteArray::at()...