in reply to How do I search this binary file?
I'd then shift the buffer and where I'm searching in the buffer down by N/2 bytes, read another N/2 bytes into the now free half of the buffer, and continue until the pattern was found or the file is exhausted.
I can't provide any working code at this time (paying work intervenes) but that should get you going.
--t. alex
but my friends call me T.
|
|---|