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

Function rioGenericUpdateChecksum

src/rio.cpp:431–433  ·  view source on GitHub ↗

This function can be installed both in memory and file streams when checksum * computation is needed. */

Source from the content-addressed store, hash-verified

429/* This function can be installed both in memory and file streams when checksum
430 * computation is needed. */
431void rioGenericUpdateChecksum(rio *r, const void *buf, size_t len) {
432 r->cksum = crc64(r->cksum,(const unsigned char*)buf,len);
433}
434
435/* Set the file-based rio object to auto-fsync every 'bytes' file written.
436 * By default this is set to zero that means no automatic file sync is

Callers 1

rdbLoadProgressCallbackFunction · 0.85

Calls 1

crc64Function · 0.85

Tested by

no test coverage detected