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

Function ldbRedisProtocolToHuman_Bool

src/scripting.cpp:2452–2459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2450}
2451
2452char *ldbRedisProtocolToHuman_Bool(sds *o, char *reply) {
2453 char *p = strchr(reply+1,'\r');
2454 if (reply[1] == 't')
2455 *o = sdscatlen(*o,"#true",5);
2456 else
2457 *o = sdscatlen(*o,"#false",6);
2458 return p+2;
2459}
2460
2461char *ldbRedisProtocolToHuman_Double(sds *o, char *reply) {
2462 char *p = strchr(reply+1,'\r');

Callers 1

ldbRedisProtocolToHumanFunction · 0.85

Calls 1

sdscatlenFunction · 0.85

Tested by

no test coverage detected