Finding bytes in a block...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • barcaroller

    #1

    Finding bytes in a block...

    Is there a C++ or Boost function that finds a sequence of (consecutive)
    bytes within a larger block of memory? Something similar to STL's
    string.find().


  • Kai-Uwe Bux

    #2
    Re: Finding bytes in a block...

    barcaroller wrote:
    Is there a C++ or Boost function that finds a sequence of (consecutive)
    bytes within a larger block of memory? Something similar to STL's
    string.find().
    In header <algorithm>, you will find std::search(). Of course, it takes
    iterators to the needle and to the haystack, but pointers qualify.


    Best

    Kai-Uwe Bux

    Comment

    Working...