Return the 'idx'-th nested call reply element of an array reply, or NULL * if the reply type is wrong or the index is out of range. */
| 4007 | /* Return the 'idx'-th nested call reply element of an array reply, or NULL |
| 4008 | * if the reply type is wrong or the index is out of range. */ |
| 4009 | RedisModuleCallReply *RM_CallReplyArrayElement(RedisModuleCallReply *reply, size_t idx) { |
| 4010 | moduleParseCallReply(reply); |
| 4011 | if (reply->type != REDISMODULE_REPLY_ARRAY) return NULL; |
| 4012 | if (idx >= reply->len) return NULL; |
| 4013 | return reply->val.array+idx; |
| 4014 | } |
| 4015 | |
| 4016 | /* Return the long long of an integer reply. */ |
| 4017 | long long RM_CallReplyInteger(RedisModuleCallReply *reply) { |
nothing calls this directly
no test coverage detected