Results 1 to 3 of 3

Thread: Search for Bytes in QByteArray in certain order

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Search for Bytes in QByteArray in certain order

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Search for Bytes in QByteArray in certain order

    QByteArray::contains() and QByteArray::indexOf() look like good place to start.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Search for Bytes in QByteArray in certain order

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 22nd June 2011, 08:12
  2. QString in bytes
    By estanisgeyer in forum Newbie
    Replies: 1
    Last Post: 23rd October 2010, 16:04
  3. Replies: 9
    Last Post: 25th July 2009, 13:27
  4. How to get an array of bytes from a DLL?
    By srohit24 in forum Qt Programming
    Replies: 5
    Last Post: 22nd April 2009, 16:11
  5. How many bytes did i send?
    By yagabey in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2008, 10:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.