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

Function RM_CallReplyStringPtr

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

Return the pointer and length of a string or error reply. */

Source from the content-addressed store, hash-verified

3934
3935/* Return the pointer and length of a string or error reply. */
3936const char *RM_CallReplyStringPtr(RedisModuleCallReply *reply, size_t *len) {
3937 moduleParseCallReply(reply);
3938 if (reply->type != REDISMODULE_REPLY_STRING &&
3939 reply->type != REDISMODULE_REPLY_ERROR) return NULL;
3940 if (len) *len = reply->len;
3941 return reply->val.str;
3942}
3943
3944/* Return a new string object from a call reply of type string, error or
3945 * integer. Otherwise (wrong reply type) return NULL. */

Callers

nothing calls this directly

Calls 1

moduleParseCallReplyFunction · 0.85

Tested by

no test coverage detected