MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rdbLoadLen

Function rdbLoadLen

app/redis-6.2.6/src/rdb.c:242–247  ·  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

240 * (since it is a too large count to be applicable in any Redis data
241 * structure). */
242uint64_t rdbLoadLen(rio *rdb, int *isencoded) {
243 uint64_t len;
244
245 if (rdbLoadLenByRef(rdb,isencoded,&len) == -1) return RDB_LENERR;
246 return len;
247}
248
249/* Encodes the "value" argument as integer when it fits in the supported ranges
250 * 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