haerry

haerry

  • NA
  • 11
  • 0

very fast binary search in files

May 22 2004 2:40 PM
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)