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

Function RecFileWrite

src/records/RecFile.cc:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131//-------------------------------------------------------------------------
132
133int
134RecFileWrite(RecHandle h_file, char *buf, int size, int *bytes_written)
135{
136 if ((*bytes_written = ::write(h_file, buf, size)) < 0) {
137 *bytes_written = 0;
138 return REC_ERR_FAIL;
139 }
140 return REC_ERR_OKAY;
141}
142
143//-------------------------------------------------------------------------
144// RecFileGetSize

Callers

nothing calls this directly

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected