MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rioInitWithFd

Function rioInitWithFd

app/redis-6.2.6/src/rio.c:371–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369};
370
371void rioInitWithFd(rio *r, int fd) {
372 *r = rioFdIO;
373 r->io.fd.fd = fd;
374 r->io.fd.pos = 0;
375 r->io.fd.buf = sdsempty();
376}
377
378/* release the rio stream. */
379void rioFreeFd(rio *r) {

Callers 1

rdbSaveToSlavesSocketsFunction · 0.85

Calls 1

sdsemptyFunction · 0.85

Tested by

no test coverage detected