MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rioFdFlush

Function rioFdFlush

src/rio.cpp:393–397  ·  view source on GitHub ↗

Flushes any buffer to target device if applicable. Returns 1 on success * and 0 on failures. */

Source from the content-addressed store, hash-verified

391/* Flushes any buffer to target device if applicable. Returns 1 on success
392 * and 0 on failures. */
393static int rioFdFlush(rio *r) {
394 /* Our flush is implemented by the write method, that recognizes a
395 * buffer set to NULL with a count of zero as a flush request. */
396 return rioFdWrite(r,NULL,0);
397}
398
399static const rio rioFdIO = {
400 rioFdRead,

Callers

nothing calls this directly

Calls 1

rioFdWriteFunction · 0.85

Tested by

no test coverage detected