Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
415
void 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. */
423
void rioFreeFd(rio *r) {
Callers
2
rdbSaveToSlavesSocketsThread
Function · 0.85
rdbSaveToSlavesSockets
Function · 0.85
Calls
1
sdsempty
Function · 0.85
Tested by
no test coverage detected