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

Function addReplyBigNum

app/redis-6.2.6/src/networking.c:696–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694}
695
696void addReplyBigNum(client *c, const char* num, size_t len) {
697 if (c->resp == 2) {
698 addReplyBulkCBuffer(c, num, len);
699 } else {
700 addReplyProto(c,"(",1);
701 addReplyProto(c,num,len);
702 addReply(c,shared.crlf);
703 }
704}
705
706/* Add a long double as a bulk reply, but uses a human readable formatting
707 * of the double instead of exposing the crude behavior of doubles to the

Callers 1

debugCommandFunction · 0.85

Calls 3

addReplyBulkCBufferFunction · 0.85
addReplyProtoFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected