MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zrangeResultEmitLongLongToClient

Function zrangeResultEmitLongLongToClient

src/t_zset.cpp:2919–2931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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