xrootd
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
XrdOucPgrwUtils::dataInfo Struct Reference

#include <XrdOucPgrwUtils.hh>

Public Member Functions

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

Public Attributes

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

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.

Constructor & Destructor Documentation

◆ dataInfo()

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

Member Data Documentation

◆ count

int XrdOucPgrwUtils::dataInfo::count

Number of bytes to check.

◆ csval

const uint32_t* XrdOucPgrwUtils::dataInfo::csval

Pointer to vector of checksums.

◆ data

const char* XrdOucPgrwUtils::dataInfo::data

Pointer to data buffer.

◆ offs

off_t XrdOucPgrwUtils::dataInfo::offs

Offset associated with data.


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