#include <XrdCksCalcadler32.hh>
Public Member Functions | |
| XrdCksCalcadler32 () | |
| virtual | ~XrdCksCalcadler32 () |
| bool | Combinable () override |
| const char * | Combine (const char *Cksum, int DLen) override |
| const char * | Combine (const char *Cksum1, const char *Cksum2, int DLen) override |
| char * | Final () override |
| void | Init () override |
| XrdCksCalc * | New () override |
| const char * | Type (int &csSize) override |
| void | Update (const char *Buff, int BLen) override |
| Public Member Functions inherited from XrdCksCalc | |
| XrdCksCalc () | |
| Constructor. | |
| virtual | ~XrdCksCalc () |
| Destructor. | |
| virtual char * | Calc (const char *Buff, int BLen) |
| virtual char * | Current () |
| virtual void | Recycle () |
| Recycle the checksum object as it is no longer needed. A default is given. | |
Definition at line 82 of file XrdCksCalcadler32.hh.
|
inline |
Definition at line 134 of file XrdCksCalcadler32.hh.
References Init().
Referenced by New().
|
inlinevirtual |
Definition at line 135 of file XrdCksCalcadler32.hh.
|
inlineoverridevirtual |
Indicate whether or not checksums are combinable for this checksum.
Reimplemented from XrdCksCalc.
Definition at line 86 of file XrdCksCalcadler32.hh.
|
inlineoverridevirtual |
Combine current checksum with a checksum computed for an adjacent block.
| Cksum | -> Pointer to the binary checksum of the same algorithm. |
| DLen | -> Length of the data used to compute the checksum. |
Reimplemented from XrdCksCalc.
Definition at line 88 of file XrdCksCalcadler32.hh.
References Final().
|
inlineoverridevirtual |
Combine a checksum with a checksum computed for an adjacent block.
| Cksum1 | -> Pointer to a binary checksum. |
| Cksum2 | -> Pointer to a binary checksum of the same type. |
| DLen | -> Length of the data used to compute the checksum. |
Reimplemented from XrdCksCalc.
Definition at line 97 of file XrdCksCalcadler32.hh.
|
inlineoverridevirtual |
Get the actual checksum in binary format.
Implements XrdCksCalc.
Definition at line 107 of file XrdCksCalcadler32.hh.
Referenced by Combine().
|
inlineoverridevirtual |
Initializes data structures (must be called by constructor). This is always called to reuse the object for a new checksum.
Implements XrdCksCalc.
Definition at line 115 of file XrdCksCalcadler32.hh.
Referenced by XrdCksCalcadler32().
|
inlineoverridevirtual |
Get a new instance of the underlying checksum calculation object.
Implements XrdCksCalc.
Definition at line 117 of file XrdCksCalcadler32.hh.
References XrdCksCalc::XrdCksCalc(), and XrdCksCalcadler32().
|
inlineoverridevirtual |
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.
Definition at line 131 of file XrdCksCalcadler32.hh.
|
inlineoverridevirtual |
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.
Definition at line 119 of file XrdCksCalcadler32.hh.