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

Function RM_ReplyWithStringBuffer

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

Reply with a bulk string, taking in input a C buffer pointer and length. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1633 *
1634 * The function always returns REDISMODULE_OK. */
1635int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) {
1636 client *c = moduleGetReplyClient(ctx);
1637 if (c == NULL) return REDISMODULE_OK;
1638 addReplyBulkCBuffer(c,(char*)buf,len);
1639 return REDISMODULE_OK;
1640}
1641
1642/* Reply with a bulk string, taking in input a C buffer pointer that is
1643 * assumed to be null-terminated.

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyBulkCBufferFunction · 0.85

Tested by

no test coverage detected