XRootD
XrdOucPgrwUtils::dataInfo Struct Reference

#include <XrdOucPgrwUtils.hh>

+ Collaboration diagram for XrdOucPgrwUtils::dataInfo:

Public Member Functions

 dataInfo (const char *dP, const uint32_t *cP, off_t o, int n)
 

Public Attributes

int count
 Number of bytes to check. More...
 
const uint32_t * csval
 Pointer to vector of checksums. More...
 
const char * data
 Pointer to data buffer. More...
 
off_t offs
 Offset associated with data. More...
 

Detailed Description

Verify CRC32C checksums for a pgWrite request.

Parameters
dInfoReference to the data information used or state control.
badoThe offset in error when return false.
badcThe length of erroneous data at bado.
Returns
true if all the checksums match. Otherwise, false is returned with bado and badc set and dInfo is updated so that the next call with the same dInfo will verify the remaing data. To avoid an unneeded call first check if dInfo.count is positive.

Definition at line 100 of file XrdOucPgrwUtils.hh.

Constructor & Destructor Documentation

◆ dataInfo()

XrdOucPgrwUtils::dataInfo::dataInfo ( const char *  dP,
const uint32_t *  cP,
off_t  o,
int  n 
)
inline

Definition at line 106 of file XrdOucPgrwUtils.hh.

107  : data(dP), csval(cP), offs(o), count(n) {}
const char * data
Pointer to data buffer.
int count
Number of bytes to check.
const uint32_t * csval
Pointer to vector of checksums.
off_t offs
Offset associated with data.

Member Data Documentation

◆ count

int XrdOucPgrwUtils::dataInfo::count

Number of bytes to check.

Definition at line 104 of file XrdOucPgrwUtils.hh.

Referenced by XrdOucPgrwUtils::csVer().

◆ csval

const uint32_t* XrdOucPgrwUtils::dataInfo::csval

Pointer to vector of checksums.

Definition at line 102 of file XrdOucPgrwUtils.hh.

Referenced by XrdOucPgrwUtils::csVer().

◆ data

const char* XrdOucPgrwUtils::dataInfo::data

Pointer to data buffer.

Definition at line 101 of file XrdOucPgrwUtils.hh.

Referenced by XrdOucPgrwUtils::csVer().

◆ offs

off_t XrdOucPgrwUtils::dataInfo::offs

Offset associated with data.

Definition at line 103 of file XrdOucPgrwUtils.hh.

Referenced by XrdOucPgrwUtils::csVer().


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