MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_LoadLongDouble

Function RM_LoadLongDouble

src/module.cpp:4976–4985  ·  view source on GitHub ↗

In the context of the rdb_save method of a module data type, loads back the * long double value saved by RedisModule_SaveLongDouble(). */

Source from the content-addressed store, hash-verified

4974/* In the context of the rdb_save method of a module data type, loads back the
4975 * long double value saved by RedisModule_SaveLongDouble(). */
4976long double RM_LoadLongDouble(RedisModuleIO *io) {
4977 if (io->error) return 0;
4978 long double value;
4979 size_t len;
4980 char* str = RM_LoadStringBuffer(io,&len);
4981 if (!str) return 0;
4982 string2ld(str,len,&value);
4983 RM_Free(str);
4984 return value;
4985}
4986
4987/* Iterate over modules, and trigger rdb aux saving for the ones modules types
4988 * who asked for it. */

Callers

nothing calls this directly

Calls 3

RM_LoadStringBufferFunction · 0.85
string2ldFunction · 0.85
RM_FreeFunction · 0.85

Tested by

no test coverage detected