1
Reply

very fast binary search in files

haerry

haerry

May 22 2004 2:40 PM
3.1k
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.

Answers (1)