#include <XrdCksCalccrc32C.hh>
Public Member Functions | |
| XrdCksCalccrc32C () | |
| virtual | ~XrdCksCalccrc32C () |
| 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 &csSz) 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 42 of file XrdCksCalccrc32C.hh.
|
inline |
Definition at line 64 of file XrdCksCalccrc32C.hh.
References Init().
Referenced by New().
|
inlinevirtual |
Definition at line 65 of file XrdCksCalccrc32C.hh.
|
inlineoverridevirtual |
Indicate whether or not checksums are combinable for this checksum.
Reimplemented from XrdCksCalc.
Definition at line 46 of file XrdCksCalccrc32C.hh.
|
overridevirtual |
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 24 of file XrdCksCalccrc32C.cc.
References XrdOucCRC::Combine32C(), and Final().
|
overridevirtual |
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 41 of file XrdCksCalccrc32C.cc.
References XrdOucCRC::Combine32C().
|
overridevirtual |
Get the actual checksum in binary format.
Implements XrdCksCalc.
Definition at line 65 of file XrdCksCalccrc32C.cc.
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 55 of file XrdCksCalccrc32C.hh.
Referenced by XrdCksCalccrc32C().
|
overridevirtual |
Get a new instance of the underlying checksum calculation object.
Implements XrdCksCalc.
Definition at line 78 of file XrdCksCalccrc32C.cc.
References XrdCksCalc::XrdCksCalc(), and XrdCksCalccrc32C().
|
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 59 of file XrdCksCalccrc32C.hh.
|
overridevirtual |
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 85 of file XrdCksCalccrc32C.cc.
References XrdOucCRC::Calc32C().