1
Answer

very fast binary search in files

haerry

haerry

20y
3.1k
1
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)