Reply with a bulk string, taking in input a C buffer pointer and length. * * The function always returns REDISMODULE_OK. */
| 1633 | * |
| 1634 | * The function always returns REDISMODULE_OK. */ |
| 1635 | int 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. |
nothing calls this directly
no test coverage detected