summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h')
-rw-r--r--plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h b/plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h
new file mode 100644
index 0000000000..4039822cae
--- /dev/null
+++ b/plugins/!NotAdopted/SmartAutoReplier/Crc32Static.h
@@ -0,0 +1,33 @@
+/*
+ * Smart Auto Replier (SAR) - auto replier plugin for Miranda IM
+ *
+ * Copyright (C) 2004 - 2012 by Volodymyr M. Shcherbyna <volodymyr@shcherbyna.com>
+ *
+ * This file is part of SAR.
+ *
+ * SAR is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * SAR is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with SAR. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+class CCrc32Static
+{
+public:
+ CCrc32Static();
+ virtual ~CCrc32Static();
+ static DWORD StringCrc32(LPCTSTR szString, DWORD &dwCrc32);
+protected:
+ static inline void CalcCrc32(const BYTE byte, DWORD &dwCrc32);
+ static DWORD s_arrdwCrc32Table[256];
+};