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. */
| 1690 | * |
| 1691 | * The function always returns REDISMODULE_OK. */ |
| 1692 | int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) { |
| 1693 | client *c = moduleGetReplyClient(ctx); |
| 1694 | if (c == NULL) return REDISMODULE_OK; |
| 1695 | AeLocker locker; |
| 1696 | std::unique_lock<fastlock> lock(c->lock); |
| 1697 | locker.arm(c); |
| 1698 | addReplyBulkCString(c,(char*)buf); |
| 1699 | return REDISMODULE_OK; |
| 1700 | } |
| 1701 | |
| 1702 | /* Reply with a bulk string, taking in input a RedisModuleString object. |
| 1703 | * |
nothing calls this directly
no test coverage detected