B
Bob Altman
I am processing a very large (20+ GB) file. As part of my processing I need
to compute a CRC or hash value for the file. To improve the efficiency of
my algorithm I'm looking for a way to do this without having to read the
file twice (once for my processing and again to compute the hash).
My processing involves reading the file one 64K byte chunk at a time into a
byte array. As I'm reading the file I'd like to generate a running CRC or
hash code that I can update each time I read another bunch of bytes from the
file. Is there a way to do this without writing my own CRC32
implementation?
Thanks!
- Bob
to compute a CRC or hash value for the file. To improve the efficiency of
my algorithm I'm looking for a way to do this without having to read the
file twice (once for my processing and again to compute the hash).
My processing involves reading the file one 64K byte chunk at a time into a
byte array. As I'm reading the file I'd like to generate a running CRC or
hash code that I can update each time I read another bunch of bytes from the
file. Is there a way to do this without writing my own CRC32
implementation?
Thanks!
- Bob