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

Function RM_CallReplyArrayElement

app/redis-6.2.6/src/module.c:3921–3926  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
3921RedisModuleCallReply *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. */
3929long long RM_CallReplyInteger(RedisModuleCallReply *reply) {

Callers

nothing calls this directly

Calls 1

moduleParseCallReplyFunction · 0.85

Tested by

no test coverage detected