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

Function rdbLoadLen

src/rdb.cpp:247–252  ·  view source on GitHub ↗

This is like rdbLoadLenByRef() but directly returns the value read * from the RDB stream, signaling an error by returning RDB_LENERR * (since it is a too large count to be applicable in any Redis data * structure). */

Source from the content-addressed store, hash-verified

245 * (since it is a too large count to be applicable in any Redis data
246 * structure). */
247uint64_t rdbLoadLen(rio *rdb, int *isencoded) {
248 uint64_t len;
249
250 if (rdbLoadLenByRef(rdb,isencoded,&len) == -1) return RDB_LENERR;
251 return len;
252}
253
254/* Encodes the "value" argument as integer when it fits in the supported ranges
255 * for encoded types. If the function successfully encodes the integer, the

Callers 10

rdbLoadLzfStringObjectFunction · 0.85
rdbLoadCheckModuleValueFunction · 0.85
rdbLoadObjectFunction · 0.85
rdbLoadRioFunction · 0.85
redis_check_rdbFunction · 0.85
RM_LoadUnsignedFunction · 0.85
moduleLoadStringFunction · 0.85
RM_LoadDoubleFunction · 0.85
RM_LoadFloatFunction · 0.85

Calls 1

rdbLoadLenByRefFunction · 0.85

Tested by

no test coverage detected