1#ifndef __XRDOUCPGRWUTILS_HH__
2#define __XRDOUCPGRWUTILS_HH__
54static void csCalc(
const char* data, off_t offs,
size_t count,
57static void csCalc(
const char* data, off_t offs,
size_t count,
58 std::vector<uint32_t> &csvec);
70static int csNum(off_t offs,
int count);
85static int csNum(off_t offs,
int count,
int &fLen,
int &lLen);
106 dataInfo(
const char* dP,
const uint32_t* cP, off_t o,
int n)
Definition XrdOucPgrwUtils.hh:38
static int recvLayout(Layout &layout, off_t offs, int dlen, int bsz=0)
static int csNum(off_t offs, int count)
Compute the required size of a checksum vector based on offset & length.
static bool csVer(dataInfo &dInfo, off_t &bado, int &badc)
static void csCalc(const char *data, off_t offs, size_t count, std::vector< uint32_t > &csvec)
static void csCalc(const char *data, off_t offs, size_t count, uint32_t *csval)
XrdOucPgrwUtils()
Definition XrdOucPgrwUtils.hh:148
~XrdOucPgrwUtils()
Definition XrdOucPgrwUtils.hh:149
static int sendLayout(Layout &layout, off_t offs, int dlen, int bsz=0)
static int csNum(off_t offs, int count, int &fLen, int &lLen)
Compute the required size of a checksum vector based on offset & length.
Compute the layout for an iovec that receives network bytes applying.
Definition XrdOucPgrwUtils.hh:135
off_t bOffset
Buffer offset to apply iov[1].iov_base.
Definition XrdOucPgrwUtils.hh:136
int dataLen
Total number of filesys bytes the iovec will handle.
Definition XrdOucPgrwUtils.hh:137
int fLen
Length to use for iov[1].iov_len.
Definition XrdOucPgrwUtils.hh:139
int sockLen
Total number of network bytes the iovec will handle.
Definition XrdOucPgrwUtils.hh:138
const char * eWhy
Reason for failure when zero is returned.
Definition XrdOucPgrwUtils.hh:141
int lLen
Length to use for iov[csnum*2-1].iov_len)
Definition XrdOucPgrwUtils.hh:140
Definition XrdOucPgrwUtils.hh:101
const char * data
Pointer to data buffer.
Definition XrdOucPgrwUtils.hh:101
int count
Number of bytes to check.
Definition XrdOucPgrwUtils.hh:104
const uint32_t * csval
Pointer to vector of checksums.
Definition XrdOucPgrwUtils.hh:102
off_t offs
Offset associated with data.
Definition XrdOucPgrwUtils.hh:103
dataInfo(const char *dP, const uint32_t *cP, off_t o, int n)
Definition XrdOucPgrwUtils.hh:106