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

Function getPositiveLongFromObjectOrReply

app/redis-6.2.6/src/object.c:744–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744int getPositiveLongFromObjectOrReply(client *c, robj *o, long *target, const char *msg) {
745 if (msg) {
746 return getRangeLongFromObjectOrReply(c, o, 0, LONG_MAX, target, msg);
747 } else {
748 return getRangeLongFromObjectOrReply(c, o, 0, LONG_MAX, target, "value is out of range, must be positive");
749 }
750}
751
752int getIntFromObjectOrReply(client *c, robj *o, int *target, const char *msg) {
753 long value;

Callers 4

spopWithCountCommandFunction · 0.85
debugCommandFunction · 0.85
popGenericCommandFunction · 0.85
lposCommandFunction · 0.85

Calls 1

Tested by

no test coverage detected