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

Function rdbSaveAuxFieldStrStr

src/rdb.cpp:1109–1111  ·  view source on GitHub ↗

Wrapper for rdbSaveAuxField() used when key/val length can be obtained * with strlen(). */

Source from the content-addressed store, hash-verified

1107/* Wrapper for rdbSaveAuxField() used when key/val length can be obtained
1108 * with strlen(). */
1109ssize_t rdbSaveAuxFieldStrStr(rio *rdb, const char *key, const char *val) {
1110 return rdbSaveAuxField(rdb,key,strlen(key),val,strlen(val));
1111}
1112
1113/* Wrapper for strlen(key) + integer type (up to long long range). */
1114ssize_t rdbSaveAuxFieldStrInt(rio *rdb, const char *key, long long val) {

Callers 3

createDumpPayloadFunction · 0.85
rdbSaveKeyValuePairFunction · 0.85
rdbSaveInfoAuxFieldsFunction · 0.85

Calls 1

rdbSaveAuxFieldFunction · 0.85

Tested by

no test coverage detected