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

Function ldbRedisProtocolToHuman_Bulk

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

Source from the content-addressed store, hash-verified

2346}
2347
2348char *ldbRedisProtocolToHuman_Bulk(sds *o, char *reply) {
2349 char *p = strchr(reply+1,'\r');
2350 long long bulklen;
2351
2352 string2ll(reply+1,p-reply-1,&bulklen);
2353 if (bulklen == -1) {
2354 *o = sdscatlen(*o,"NULL",4);
2355 return p+2;
2356 } else {
2357 *o = sdscatrepr(*o,p+2,bulklen);
2358 return p+2+bulklen+2;
2359 }
2360}
2361
2362char *ldbRedisProtocolToHuman_Status(sds *o, char *reply) {
2363 char *p = strchr(reply+1,'\r');

Callers 1

ldbRedisProtocolToHumanFunction · 0.85

Calls 4

strchrFunction · 0.85
sdscatlenFunction · 0.85
sdscatreprFunction · 0.85
string2llFunction · 0.70

Tested by

no test coverage detected