#include <XrdCksCalcadler32.hh>
◆ XrdCksCalcadler32()
XrdCksCalcadler32::XrdCksCalcadler32 |
( |
| ) |
|
|
inline |
◆ ~XrdCksCalcadler32()
virtual XrdCksCalcadler32::~XrdCksCalcadler32 |
( |
| ) |
|
|
inlinevirtual |
◆ Final()
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.
◆ Init()
void XrdCksCalcadler32::Init |
( |
| ) |
|
|
inlinevirtual |
◆ New()
Get a new instance of the underlying checksum calculation object.
- Returns
- the checksum calculation object.
Implements XrdCksCalc.
References XrdCksCalcadler32().
◆ Type()
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.
◆ Update()
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.
◆ AdlerBase
const unsigned int XrdCksCalcadler32::AdlerBase = 0xFFF1 |
|
staticprivate |
◆ AdlerNMax
const int XrdCksCalcadler32::AdlerNMax = 5552 |
|
staticprivate |
◆ AdlerStart
const unsigned int XrdCksCalcadler32::AdlerStart = 0x0001 |
|
staticprivate |
◆ AdlerValue
unsigned int XrdCksCalcadler32::AdlerValue |
|
private |
◆ unSum1
unsigned int XrdCksCalcadler32::unSum1 |
|
private |
◆ unSum2
unsigned int XrdCksCalcadler32::unSum2 |
|
private |
The documentation for this class was generated from the following file: