Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for * more info. On error -1 is returned, otherwise 0. */
| 640 | /* Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for |
| 641 | * more info. On error -1 is returned, otherwise 0. */ |
| 642 | int 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. */ |
| 649 | int rdbSaveBinaryFloatValue(rio *rdb, float val) { |
no test coverage detected