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

Function RM_LoadLongDouble

app/redis-6.2.6/src/module.c:4867–4876  ·  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

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(). */
4867long 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. */

Callers

nothing calls this directly

Calls 3

RM_LoadStringBufferFunction · 0.85
string2ldFunction · 0.85
RM_FreeFunction · 0.85

Tested by

no test coverage detected