MCPcopy Create free account
hub / github.com/apache/trafficserver / RecFileRead

Function RecFileRead

src/records/RecFile.cc:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95//-------------------------------------------------------------------------
96
97int
98RecFileRead(RecHandle h_file, char *buf, int size, int *bytes_read)
99{
100 if ((*bytes_read = ::read(h_file, buf, size)) <= 0) {
101 *bytes_read = 0;
102 return REC_ERR_FAIL;
103 }
104 return REC_ERR_OKAY;
105}
106
107//-------------------------------------------------------------------------
108// RecSnapFileWrite

Callers 2

RecMessageReadFromDiskFunction · 0.85
RecFileImport_XmallocFunction · 0.85

Calls 1

readFunction · 0.50

Tested by

no test coverage detected