byte[] does not equal a matching byte[], but the hex values match.
I have two byte arrays, one is 4 bytes long containing a known sequence, the other is file data. I am attempting to locate the 4-byte sequence in the file data by checking every four bytes in the file data, and using indexing to get the four bytes.
Here's the code:
Can anyone explain this behavior? And suggest how I can fix it?
Thanks
Here's the code:
Can anyone explain this behavior? And suggest how I can fix it?
Thanks