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

Function zrangeResultEmitLongLongToClient

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

Source from the content-addressed store, hash-verified

2918}
2919
2920static void zrangeResultEmitLongLongToClient(zrange_result_handler *handler,
2921 long long value, double score)
2922{
2923 if (handler->should_emit_array_length) {
2924 addReplyArrayLen(handler->client, 2);
2925 }
2926
2927 addReplyBulkLongLong(handler->client, value);
2928
2929 if (handler->withscores) {
2930 addReplyDouble(handler->client, score);
2931 }
2932}
2933
2934static void zrangeResultFinalizeClient(zrange_result_handler *handler,
2935 size_t result_count)

Callers

nothing calls this directly

Calls 3

addReplyArrayLenFunction · 0.85
addReplyBulkLongLongFunction · 0.85
addReplyDoubleFunction · 0.85

Tested by

no test coverage detected