#include <XrdCksCalc.hh>
Public Member Functions | |
| virtual char * | Calc (const char *Buff, int BLen) |
| virtual char * | Current () |
| virtual char * | Final ()=0 |
| virtual void | Init ()=0 |
| virtual XrdCksCalc * | New ()=0 |
| virtual void | Recycle () |
| Recycle the checksum object as it is no longer needed. A default is given. | |
| virtual const char * | Type (int &csSize)=0 |
| virtual void | Update (const char *Buff, int BLen)=0 |
| XrdCksCalc () | |
| Constructor. | |
| virtual | ~XrdCksCalc () |
| Destructor. | |
| XrdCksCalc::XrdCksCalc | ( | ) | [inline] |
Constructor.
| virtual XrdCksCalc::~XrdCksCalc | ( | ) | [inline, virtual] |
Destructor.
| virtual char* XrdCksCalc::Calc | ( | const char * | Buff, | |
| int | BLen | |||
| ) | [inline, virtual] |
Calculate a one-time checksum. The obvious default implementation is provided and assumes that Init() may be called more than once.
| Buff | -> Data to be checksummed. | |
| BLen | -> Length of the data in Buff. |
| virtual char* XrdCksCalc::Current | ( | ) | [inline, virtual] |
Get the current binary checksum value (defaults to final). However, the final checksum result is not affected.
| virtual char* XrdCksCalc::Final | ( | ) | [pure virtual] |
Get the actual checksum in binary format.
| virtual void XrdCksCalc::Init | ( | ) | [pure virtual] |
Initializes data structures (must be called by constructor). This is always called to reuse the object for a new checksum.
| virtual XrdCksCalc* XrdCksCalc::New | ( | ) | [pure virtual] |
Get a new instance of the underlying checksum calculation object.
| virtual void XrdCksCalc::Recycle | ( | ) | [inline, virtual] |
Recycle the checksum object as it is no longer needed. A default is given.
| virtual const char* XrdCksCalc::Type | ( | int & | csSize | ) | [pure 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. |
| virtual void XrdCksCalc::Update | ( | const char * | Buff, | |
| int | BLen | |||
| ) | [pure 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. |
1.4.7