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

Function getLongLongFromObjectOrReply

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

Source from the content-addressed store, hash-verified

699}
700
701int getLongLongFromObjectOrReply(client *c, robj *o, long long *target, const char *msg) {
702 long long value;
703 if (getLongLongFromObject(o, &value) != C_OK) {
704 if (msg != NULL) {
705 addReplyError(c,(char*)msg);
706 } else {
707 addReplyError(c,"value is not an integer or out of range");
708 }
709 return C_ERR;
710 }
711 *target = value;
712 return C_OK;
713}
714
715int getLongFromObjectOrReply(client *c, robj *o, long *target, const char *msg) {
716 long long value;

Callers 15

evalGenericCommandFunction · 0.85
sentinelCommandFunction · 0.85
expireGenericCommandFunction · 0.85
hincrbyCommandFunction · 0.85
georadiusGenericFunction · 0.85
setGenericCommandFunction · 0.85
getexCommandFunction · 0.85
getrangeCommandFunction · 0.85
incrDecrCommandFunction · 0.85
incrbyCommandFunction · 0.85
decrbyCommandFunction · 0.85

Calls 2

getLongLongFromObjectFunction · 0.85
addReplyErrorFunction · 0.85

Tested by

no test coverage detected