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

Function rioInitWithFd

src/rio.cpp:415–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413};
414
415void rioInitWithFd(rio *r, int fd) {
416 *r = rioFdIO;
417 r->io.fd.fd = fd;
418 r->io.fd.pos = 0;
419 r->io.fd.buf = sdsempty();
420}
421
422/* release the rio stream. */
423void rioFreeFd(rio *r) {

Callers 2

rdbSaveToSlavesSocketsFunction · 0.85

Calls 1

sdsemptyFunction · 0.85

Tested by

no test coverage detected