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

Function addReplyBigNum

src/networking.cpp:855–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855void addReplyBigNum(client *c, const char* num, size_t len) {
856 if (c->resp == 2) {
857 addReplyBulkCBuffer(c, num, len);
858 } else {
859 addReplyProto(c,"(",1);
860 addReplyProto(c,num,len);
861 addReply(c,shared.crlf);
862 }
863}
864
865/* Add a long double as a bulk reply, but uses a human readable formatting
866 * 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