#include <XrdCksCalcadler32.hh>


Public Member Functions | |
| char * | Final () |
| void | Init () |
| XrdCksCalc * | New () |
| void | Update (const char *Buff, int BLen) |
| const char * | Type (int &csSize) |
| XrdCksCalcadler32 () | |
| virtual | ~XrdCksCalcadler32 () |
Private Attributes | |
| unsigned int | AdlerValue |
| unsigned int | unSum1 |
| unsigned int | unSum2 |
Static Private Attributes | |
| static const unsigned int | AdlerBase = 0xFFF1 |
| static const unsigned int | AdlerStart = 0x0001 |
| static const int | AdlerNMax = 5552 |
| XrdCksCalcadler32::XrdCksCalcadler32 | ( | ) | [inline] |
References Init().
| virtual XrdCksCalcadler32::~XrdCksCalcadler32 | ( | ) | [inline, virtual] |
| char* XrdCksCalcadler32::Final | ( | ) | [inline, virtual] |
Get the actual checksum in binary format.
Implements XrdCksCalc.
References AdlerValue, unSum1, and unSum2.
| void XrdCksCalcadler32::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 AdlerStart, unSum1, and unSum2.
Referenced by XrdCksCalcadler32().
| XrdCksCalc* XrdCksCalcadler32::New | ( | ) | [inline, virtual] |
Get a new instance of the underlying checksum calculation object.
Implements XrdCksCalc.
| const char* XrdCksCalcadler32::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 AdlerValue.
| void XrdCksCalcadler32::Update | ( | const char * | Buff, | |
| int | BLen | |||
| ) | [inline, virtual] |
const unsigned int XrdCksCalcadler32::AdlerBase = 0xFFF1 [static, private] |
Referenced by Update().
const int XrdCksCalcadler32::AdlerNMax = 5552 [static, private] |
Referenced by Update().
const unsigned int XrdCksCalcadler32::AdlerStart = 0x0001 [static, private] |
Referenced by Init().
unsigned int XrdCksCalcadler32::AdlerValue [private] |
unsigned int XrdCksCalcadler32::unSum1 [private] |
unsigned int XrdCksCalcadler32::unSum2 [private] |
1.6.1