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

Function zrangeResultEmitCBufferToClient

app/redis-6.2.6/src/t_zset.c:2906–2918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2904}
2905
2906static void zrangeResultEmitCBufferToClient(zrange_result_handler *handler,
2907 const void *value, size_t value_length_in_bytes, double score)
2908{
2909 if (handler->should_emit_array_length) {
2910 addReplyArrayLen(handler->client, 2);
2911 }
2912
2913 addReplyBulkCBuffer(handler->client, value, value_length_in_bytes);
2914
2915 if (handler->withscores) {
2916 addReplyDouble(handler->client, score);
2917 }
2918}
2919
2920static void zrangeResultEmitLongLongToClient(zrange_result_handler *handler,
2921 long long value, double score)

Callers

nothing calls this directly

Calls 3

addReplyArrayLenFunction · 0.85
addReplyBulkCBufferFunction · 0.85
addReplyDoubleFunction · 0.85

Tested by

no test coverage detected