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. */
| 3919 | /* Return the 'idx'-th nested call reply element of an array reply, or NULL |
| 3920 | * if the reply type is wrong or the index is out of range. */ |
| 3921 | RedisModuleCallReply *RM_CallReplyArrayElement(RedisModuleCallReply *reply, size_t idx) { |
| 3922 | moduleParseCallReply(reply); |
| 3923 | if (reply->type != REDISMODULE_REPLY_ARRAY) return NULL; |
| 3924 | if (idx >= reply->len) return NULL; |
| 3925 | return reply->val.array+idx; |
| 3926 | } |
| 3927 | |
| 3928 | /* Return the long long of an integer reply. */ |
| 3929 | long long RM_CallReplyInteger(RedisModuleCallReply *reply) { |
nothing calls this directly
no test coverage detected