00001 #ifndef __XRDOUCCRC_HH__ 00002 #define __XRDOUCCRC_HH__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d O u c C R C . h h */ 00006 /* */ 00007 /* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdOucCRC.hh 24468 2008-06-22 16:47:03Z ganis $ 00014 00015 class XrdOucCRC 00016 { 00017 public: 00018 00019 static unsigned int CRC32(const unsigned char *rec, int reclen); 00020 00021 XrdOucCRC() {} 00022 ~XrdOucCRC() {} 00023 00024 private: 00025 00026 static unsigned int crctable[256]; 00027 }; 00028 #endif