00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #ifndef _CRC32STATIC_H_ 00006 #define _CRC32STATIC_H_ 00007 00008 #include "Common.h" 00009 00010 class CCrc32Static 00011 { 00012 friend class vmsHash; 00013 public: 00014 CCrc32Static(); 00015 virtual ~CCrc32Static(); 00016 00017 static DWORD StringCrc32(LPCTSTR szString, DWORD &dwCrc32); 00018 static DWORD FileCrc32Streams(LPCTSTR szFilename, DWORD &dwCrc32); 00019 00020 protected: 00021 static bool GetFileSizeQW(const HANDLE hFile, QWORD &qwSize); 00022 static inline void CalcCrc32(const BYTE byte, DWORD &dwCrc32); 00023 00024 static DWORD s_arrdwCrc32Table[256]; 00025 }; 00026 00027 #include "crc32.cpp" 00028 00029 #endif
1.5.6