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

Function RM_DigestAddStringBuffer

src/module.cpp:5059–5061  ·  view source on GitHub ↗

Add a new element to the digest. This function can be called multiple times * one element after the other, for all the elements that constitute a given * data structure. The function call must be followed by the call to * `RedisModule_DigestEndSequence` eventually, when all the elements that are * always in a given order are added. See the Redis Modules data types * documentation for more inf

Source from the content-addressed store, hash-verified

5057 *
5058 */
5059void RM_DigestAddStringBuffer(RedisModuleDigest *md, unsigned char *ele, size_t len) {
5060 mixDigest(md->o,ele,len);
5061}
5062
5063/* Like `RedisModule_DigestAddStringBuffer()` but takes a long long as input
5064 * that gets converted into a string before adding it to the digest. */

Callers

nothing calls this directly

Calls 1

mixDigestFunction · 0.85

Tested by

no test coverage detected