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

Function ldbRedisProtocolToHuman_Double

app/redis-6.2.6/src/scripting.c:2438–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2436}
2437
2438char *ldbRedisProtocolToHuman_Double(sds *o, char *reply) {
2439 char *p = strchr(reply+1,'\r');
2440 *o = sdscatlen(*o,"(double) ",9);
2441 *o = sdscatlen(*o,reply+1,p-reply-1);
2442 return p+2;
2443}
2444
2445/* Log a Redis reply as debugger output, in a human readable format.
2446 * If the resulting string is longer than 'len' plus a few more chars

Callers 1

ldbRedisProtocolToHumanFunction · 0.85

Calls 2

strchrFunction · 0.85
sdscatlenFunction · 0.85

Tested by

no test coverage detected