#include <XrdCksCalccrc32.hh>
Public Member Functions | |
char * | Final () |
void | Init () |
XrdCksCalc * | New () |
void | Update (const char *Buff, int BLen) |
const char * | Type (int &csSz) |
XrdCksCalccrc32 () | |
virtual | ~XrdCksCalccrc32 () |
Private Attributes | |
unsigned int | C32Result |
unsigned int | TheResult |
long long | TotLen |
Static Private Attributes | |
static const unsigned int | CRC32_XINIT = 0 |
static const unsigned int | CRC32_XOROT = 0xffffffff |
static unsigned int | crctable [256] |
XrdCksCalccrc32::XrdCksCalccrc32 | ( | ) | [inline] |
References Init().
virtual XrdCksCalccrc32::~XrdCksCalccrc32 | ( | ) | [inline, virtual] |
char* XrdCksCalccrc32::Final | ( | ) | [inline, virtual] |
Get the actual checksum in binary format.
Implements XrdCksCalc.
References C32Result, CRC32_XOROT, TheResult, TotLen, and Update().
void XrdCksCalccrc32::Init | ( | ) | [inline, virtual] |
Initializes data structures (must be called by constructor). This is always called to reuse the object for a new checksum.
Implements XrdCksCalc.
References C32Result, CRC32_XINIT, and TotLen.
Referenced by XrdCksCalccrc32().
XrdCksCalc* XrdCksCalccrc32::New | ( | ) | [inline, virtual] |
Get a new instance of the underlying checksum calculation object.
Implements XrdCksCalc.
const char* XrdCksCalccrc32::Type | ( | int & | csSize | ) | [inline, virtual] |
Get the checksum object algorithm name and the number bytes (i.e. size) required for the checksum value.
csSize | -> Parameter to hold the size of the checksum value. |
Implements XrdCksCalc.
References TheResult.
void XrdCksCalccrc32::Update | ( | const char * | Buff, | |
int | BLen | |||
) | [virtual] |
Compute a running checksum. This method may be called repeatedly for data segments; with Final() returning the full checksum.
Buff | -> Data to be checksummed. | |
BLen | -> Length of the data in Buff. |
Implements XrdCksCalc.
Referenced by Final().
unsigned int XrdCksCalccrc32::C32Result [private] |
const unsigned int XrdCksCalccrc32::CRC32_XINIT = 0 [static, private] |
Referenced by Init().
const unsigned int XrdCksCalccrc32::CRC32_XOROT = 0xffffffff [static, private] |
Referenced by Final().
unsigned int XrdCksCalccrc32::crctable[256] [static, private] |
unsigned int XrdCksCalccrc32::TheResult [private] |
long long XrdCksCalccrc32::TotLen [private] |