|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "EventStorage/EventStorageIssues.h"
12 class XrdPosixCallBack;
15 static int Open(
const char *
path,
int oflag, mode_t
mode=0, XrdPosixCallBack *cbP=0);
17 static size_t Read(
int fildes,
void *buf,
size_t nbyte);
46 if(pfd == 0)
return false;
66 if (sizeBytes==0)
return;
69 unsigned int totalRead=0,ntry=0;
70 while(sizeBytes > totalRead)
73 totalRead += ret; ++ntry;
75 std::stringstream mystream;
76 mystream <<
"Problem reading from the data file. "
77 <<
"fReadXRootD::readData asked to read "<<sizeBytes
78 <<
" bytes and managed to read only "<<totalRead
80 EventStorage::ReadingIssue ci(ERS_HERE, mystream.str().c_str());
static off_t Lseek(int fildes, off_t offset, int whence)
void openFile(std::string fName)
path
python interpreter configuration --------------------------------------—
static size_t Read(int fildes, void *buf, size_t nbyte)
void setPosition(int64_t p)
static int Open(const char *path, int oflag, mode_t mode=0, XrdPosixCallBack *cbP=0)
void readData(char *buffer, unsigned int sizeBytes)
fRead * newReader() const
void setPositionFromEnd(int64_t p)
static int Close(int fildes)
bool fileExists(std::string fName) const