Return the pointer and length of a string or error reply. */
| 4022 | |
| 4023 | /* Return the pointer and length of a string or error reply. */ |
| 4024 | const char *RM_CallReplyStringPtr(RedisModuleCallReply *reply, size_t *len) { |
| 4025 | moduleParseCallReply(reply); |
| 4026 | if (reply->type != REDISMODULE_REPLY_STRING && |
| 4027 | reply->type != REDISMODULE_REPLY_ERROR) return NULL; |
| 4028 | if (len) *len = reply->len; |
| 4029 | return reply->val.str; |
| 4030 | } |
| 4031 | |
| 4032 | /* Return a new string object from a call reply of type string, error or |
| 4033 | * integer. Otherwise (wrong reply type) return NULL. */ |
nothing calls this directly
no test coverage detected