xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdCksCalccrc32C Class Reference

#include <XrdCksCalccrc32C.hh>

Inheritance diagram for XrdCksCalccrc32C:
Inheritance graph
[legend]
Collaboration diagram for XrdCksCalccrc32C:
Collaboration graph
[legend]

Public Member Functions

char * Final ()
 
void Init ()
 
XrdCksCalcNew ()
 
void Update (const char *Buff, int BLen)
 
const char * Type (int &csSz)
 
 XrdCksCalccrc32C ()
 
virtual ~XrdCksCalccrc32C ()
 
- Public Member Functions inherited from XrdCksCalc
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.
 
 XrdCksCalc ()
 Constructor.
 
virtual ~XrdCksCalc ()
 Destructor.
 

Private Attributes

unsigned int C32CResult
 
unsigned int TheResult
 

Static Private Attributes

static const unsigned int C32C_XINIT = 0
 

Constructor & Destructor Documentation

◆ XrdCksCalccrc32C()

XrdCksCalccrc32C::XrdCksCalccrc32C ( )

◆ ~XrdCksCalccrc32C()

virtual XrdCksCalccrc32C::~XrdCksCalccrc32C ( )
virtual

Member Function Documentation

◆ Final()

char * XrdCksCalccrc32C::Final ( )
virtual

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.

◆ Init()

void XrdCksCalccrc32C::Init ( )
virtual

Initializes data structures (must be called by constructor). This is always called to reuse the object for a new checksum.

Implements XrdCksCalc.

◆ New()

XrdCksCalc * XrdCksCalccrc32C::New ( )
virtual

Get a new instance of the underlying checksum calculation object.

Returns
the checksum calculation object.

Implements XrdCksCalc.

◆ Type()

const char * XrdCksCalccrc32C::Type ( int &  csSize)
virtual

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.

◆ Update()

void XrdCksCalccrc32C::Update ( const char *  Buff,
int  BLen 
)
virtual

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.

Member Data Documentation

◆ C32C_XINIT

const unsigned int XrdCksCalccrc32C::C32C_XINIT = 0
staticprivate

◆ C32CResult

unsigned int XrdCksCalccrc32C::C32CResult
private

◆ TheResult

unsigned int XrdCksCalccrc32C::TheResult
private

The documentation for this class was generated from the following file: