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). */
| 240 | * (since it is a too large count to be applicable in any Redis data |
| 241 | * structure). */ |
| 242 | uint64_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 |
no test coverage detected