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

Function getLongLongFromObjectOrReply

src/object.cpp:771–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771int getLongLongFromObjectOrReply(client *c, robj *o, long long *target, const char *msg) {
772 long long value;
773 if (getLongLongFromObject(o, &value) != C_OK) {
774 if (msg != NULL) {
775 addReplyError(c,(char*)msg);
776 } else {
777 addReplyError(c,"value is not an integer or out of range");
778 }
779 return C_ERR;
780 }
781 *target = value;
782 return C_OK;
783}
784
785int getUnsignedLongLongFromObjectOrReply(client *c, robj *o, uint64_t *target, const char *msg) {
786 uint64_t value;

Callers 15

clusterCommandFunction · 0.85
mvccrestoreCommandFunction · 0.85
restoreCommandFunction · 0.85
hincrbyCommandFunction · 0.85
getLongFromObjectOrReplyFunction · 0.85
memoryCommandFunction · 0.85
georadiusGenericFunction · 0.85
xrangeGenericCommandFunction · 0.85
xreadCommandFunction · 0.85

Calls 2

getLongLongFromObjectFunction · 0.85
addReplyErrorFunction · 0.85

Tested by

no test coverage detected