Search file for binary pattern

  • Thread starter Thread starter junkmauler
  • Start date Start date
J

junkmauler

I need a pre-made class (this is way over my head.. I can imagine the
pseudo code but cant implement it myself) that can search a file for a
specified binary pattern.

Actually what I really need is a way to read in a buffer (say 4k) and
search that buffer for multiple binary patterns, which would require a
smart sliding window to search a large amount of patterns in a short
amount of time.

Anyone have any suggestions?
 
Hi,

Regual expressions are great for searching for patterns

http://msdn.microsoft.com/library/d...s/cpguide/html/cpconcomregularexpressions.asp

Ken
-------------------------
I need a pre-made class (this is way over my head.. I can imagine the
pseudo code but cant implement it myself) that can search a file for a
specified binary pattern.

Actually what I really need is a way to read in a buffer (say 4k) and
search that buffer for multiple binary patterns, which would require a
smart sliding window to search a large amount of patterns in a short
amount of time.

Anyone have any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top