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

Function RM_ReplyWithCString

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

Reply with a bulk string, taking in input a C buffer pointer that is * assumed to be null-terminated. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1644 *
1645 * The function always returns REDISMODULE_OK. */
1646int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) {
1647 client *c = moduleGetReplyClient(ctx);
1648 if (c == NULL) return REDISMODULE_OK;
1649 addReplyBulkCString(c,(char*)buf);
1650 return REDISMODULE_OK;
1651}
1652
1653/* Reply with a bulk string, taking in input a RedisModuleString object.
1654 *

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyBulkCStringFunction · 0.85

Tested by

no test coverage detected