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

Function getUnsignedLongLongFromObjectOrReply

src/object.cpp:785–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785int getUnsignedLongLongFromObjectOrReply(client *c, robj *o, uint64_t *target, const char *msg) {
786 uint64_t value;
787 if (getUnsignedLongLongFromObject(o, &value) != C_OK) {
788 if (msg != NULL) {
789 addReplyError(c,(char*)msg);
790 } else {
791 addReplyError(c,"value is not an integer or out of range");
792 }
793 return C_ERR;
794 }
795 *target = value;
796 return C_OK;
797}
798
799int getLongFromObjectOrReply(client *c, robj *o, long *target, const char *msg) {
800 long long value;

Callers 1

mvccrestoreCommandFunction · 0.85

Calls 2

addReplyErrorFunction · 0.85

Tested by

no test coverage detected