MCPcopy Create free account
hub / github.com/antirez/ds4 / dist_token_hash_update_span

Function dist_token_hash_update_span

ds4_distributed.c:1504–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1502}
1503
1504static uint64_t dist_token_hash_update_span(uint64_t h, const int *tokens, uint32_t n_tokens) {
1505 for (uint32_t i = 0; i < n_tokens; i++) h = dist_token_hash_update(h, tokens[i]);
1506 return h;
1507}
1508
1509static uint64_t dist_token_hash_prefix(const int *tokens, uint32_t n_tokens) {
1510 return dist_token_hash_update_span(DS4_DIST_TOKEN_HASH_INIT, tokens, n_tokens);

Calls 1

dist_token_hash_updateFunction · 0.85

Tested by

no test coverage detected