Very fast binary search in files
I have to search fast for patterns in a binary file.
Does anybody know how to find a byte sequence like "%%EOF\r\n" fast in a binary file ?
Textreader does not work, use of Encoding class makes the probleme even worser and therefore string.Find does not work.
ArrayLists are cool but there i can only search for a single byte. Additionaly the extra
performance cost for boxing/unboxing is not acceptable.
Any hints highly appreciated.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

spgilmoreRank #1,616 · 964 reputationPosted May 24, 2004, 11:38 AM EDT