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

Function rdbLoadBinaryDoubleValue

app/redis-6.2.6/src/rdb.c:642–646  ·  view source on GitHub ↗

Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for * more info. On error -1 is returned, otherwise 0. */

Source from the content-addressed store, hash-verified

640/* Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for
641 * more info. On error -1 is returned, otherwise 0. */
642int rdbLoadBinaryDoubleValue(rio *rdb, double *val) {
643 if (rioRead(rdb,val,sizeof(*val)) == 0) return -1;
644 memrev64ifbe(val);
645 return 0;
646}
647
648/* Like rdbSaveBinaryDoubleValue() but single precision. */
649int rdbSaveBinaryFloatValue(rio *rdb, float val) {

Callers 3

rdbLoadCheckModuleValueFunction · 0.85
rdbLoadObjectFunction · 0.85
RM_LoadDoubleFunction · 0.85

Calls 1

rioReadFunction · 0.85

Tested by

no test coverage detected