Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for * more info. On error -1 is returned, otherwise 0. */
| 654 | /* Loads a double from RDB 8 or greater. See rdbSaveBinaryDoubleValue() for |
| 655 | * more info. On error -1 is returned, otherwise 0. */ |
| 656 | int rdbLoadBinaryDoubleValue(rio *rdb, double *val) { |
| 657 | if (rioRead(rdb,val,sizeof(*val)) == 0) return -1; |
| 658 | memrev64ifbe(val); |
| 659 | return 0; |
| 660 | } |
| 661 | |
| 662 | /* Like rdbSaveBinaryDoubleValue() but single precision. */ |
| 663 | int rdbSaveBinaryFloatValue(rio *rdb, float val) { |
no test coverage detected