In the context of the rdb_save method of a module data type, loads back the * long double value saved by RedisModule_SaveLongDouble(). */
| 4865 | /* In the context of the rdb_save method of a module data type, loads back the |
| 4866 | * long double value saved by RedisModule_SaveLongDouble(). */ |
| 4867 | long double RM_LoadLongDouble(RedisModuleIO *io) { |
| 4868 | if (io->error) return 0; |
| 4869 | long double value; |
| 4870 | size_t len; |
| 4871 | char* str = RM_LoadStringBuffer(io,&len); |
| 4872 | if (!str) return 0; |
| 4873 | string2ld(str,len,&value); |
| 4874 | RM_Free(str); |
| 4875 | return value; |
| 4876 | } |
| 4877 | |
| 4878 | /* Iterate over modules, and trigger rdb aux saving for the ones modules types |
| 4879 | * who asked for it. */ |
nothing calls this directly
no test coverage detected