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

Function ldbRedisProtocolToHuman_Set

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

Source from the content-addressed store, hash-verified

2387}
2388
2389char *ldbRedisProtocolToHuman_Set(sds *o, char *reply) {
2390 char *p = strchr(reply+1,'\r');
2391 long long mbulklen;
2392 int j = 0;
2393
2394 string2ll(reply+1,p-reply-1,&mbulklen);
2395 p += 2;
2396 *o = sdscatlen(*o,"~(",2);
2397 for (j = 0; j < mbulklen; j++) {
2398 p = ldbRedisProtocolToHuman(o,p);
2399 if (j != mbulklen-1) *o = sdscatlen(*o,",",1);
2400 }
2401 *o = sdscatlen(*o,")",1);
2402 return p;
2403}
2404
2405char *ldbRedisProtocolToHuman_Map(sds *o, char *reply) {
2406 char *p = strchr(reply+1,'\r');

Callers 1

ldbRedisProtocolToHumanFunction · 0.85

Calls 4

strchrFunction · 0.85
sdscatlenFunction · 0.85
ldbRedisProtocolToHumanFunction · 0.85
string2llFunction · 0.70

Tested by

no test coverage detected