#include <XrdOucPgrwUtils.hh>
|
| dataInfo (const char *dP, const uint32_t *cP, off_t o, int n) |
|
|
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.
|
|
Verify CRC32C checksums for a pgWrite request.
- Parameters
-
dInfo | Reference to the data information used or state control. |
bado | The offset in error when return false. |
badc | The 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.
◆ dataInfo()
XrdOucPgrwUtils::dataInfo::dataInfo |
( |
const char * |
dP, |
|
|
const uint32_t * |
cP, |
|
|
off_t |
o, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ 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 |
◆ offs
off_t XrdOucPgrwUtils::dataInfo::offs |
Offset associated with data.
The documentation for this struct was generated from the following file: