#include <XrdCksCalcadler32.hh>
XrdCksCalcadler32::XrdCksCalcadler32 |
( |
| ) |
|
|
inline |
virtual XrdCksCalcadler32::~XrdCksCalcadler32 |
( |
| ) |
|
|
inlinevirtual |
char* XrdCksCalcadler32::Final |
( |
| ) |
|
|
inlinevirtual |
Get the actual checksum in binary format.
- Returns
- the checksum value in binary format. The pointer to the value becomes invalid once the associated object is deleted.
Implements XrdCksCalc.
References AdlerValue, unSum1, and unSum2.
void XrdCksCalcadler32::Init |
( |
| ) |
|
|
inlinevirtual |
Get a new instance of the underlying checksum calculation object.
- Returns
- the checksum calculation object.
Implements XrdCksCalc.
References XrdCksCalcadler32().
const char* XrdCksCalcadler32::Type |
( |
int & |
csSize | ) |
|
|
inlinevirtual |
Get the checksum object algorithm name and the number bytes (i.e. size) required for the checksum value.
- Parameters
-
csSize | -> Parameter to hold the size of the checksum value. |
- Returns
- the checksum algorithm's name. The name persists event after the checksum object is deleted.
Implements XrdCksCalc.
References AdlerValue.
void XrdCksCalcadler32::Update |
( |
const char * |
Buff, |
|
|
int |
BLen |
|
) |
| |
|
inlinevirtual |
Compute a running checksum. This method may be called repeatedly for data segments; with Final() returning the full checksum.
- Parameters
-
Buff | -> Data to be checksummed. |
BLen | -> Length of the data in Buff. |
Implements XrdCksCalc.
References AdlerBase, AdlerNMax, DO1, DO16, unSum1, and unSum2.
const unsigned int XrdCksCalcadler32::AdlerBase = 0xFFF1 |
|
staticprivate |
const int XrdCksCalcadler32::AdlerNMax = 5552 |
|
staticprivate |
const unsigned int XrdCksCalcadler32::AdlerStart = 0x0001 |
|
staticprivate |
unsigned int XrdCksCalcadler32::AdlerValue |
|
private |
unsigned int XrdCksCalcadler32::unSum1 |
|
private |
unsigned int XrdCksCalcadler32::unSum2 |
|
private |
The documentation for this class was generated from the following file: