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

Function RM_DigestAddLongLong

src/module.cpp:5065–5069  ·  view source on GitHub ↗

Like `RedisModule_DigestAddStringBuffer()` but takes a long long as input * that gets converted into a string before adding it to the digest. */

Source from the content-addressed store, hash-verified

5063/* Like `RedisModule_DigestAddStringBuffer()` but takes a long long as input
5064 * that gets converted into a string before adding it to the digest. */
5065void RM_DigestAddLongLong(RedisModuleDigest *md, long long ll) {
5066 char buf[LONG_STR_SIZE];
5067 size_t len = ll2string(buf,sizeof(buf),ll);
5068 mixDigest(md->o,buf,len);
5069}
5070
5071/* See the documentation for `RedisModule_DigestAddElement()`. */
5072void RM_DigestEndSequence(RedisModuleDigest *md) {

Callers

nothing calls this directly

Calls 2

ll2stringFunction · 0.85
mixDigestFunction · 0.85

Tested by

no test coverage detected