Searching a byte array for a pattern of bytes

  • Thread starter Thread starter toddhd
  • Start date Start date
T

toddhd

Guest
I am reading a binary file into a one dimensional byte array. Now I need to search that array for a pattern of bytes.

In other words, this is the equivilent of String.IndexOf()

I want to search the binary array and return the index of the subvalue that I searched for.

For whatever reason, I'm having trouble wrapping my head around this. Can anyone give me an example of how to achieve this?

Continue reading...
 
Back
Top