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

Function RM_LoadSigned

src/module.cpp:4798–4802  ·  view source on GitHub ↗

Like RedisModule_LoadUnsigned() but for signed 64 bit values. */

Source from the content-addressed store, hash-verified

4796
4797/* Like RedisModule_LoadUnsigned() but for signed 64 bit values. */
4798int64_t RM_LoadSigned(RedisModuleIO *io) {
4799 union {uint64_t u; int64_t i;} conv;
4800 conv.u = RM_LoadUnsigned(io);
4801 return conv.i;
4802}
4803
4804/* In the context of the rdb_save method of a module type, saves a
4805 * string into the RDB file taking as input a RedisModuleString.

Callers

nothing calls this directly

Calls 1

RM_LoadUnsignedFunction · 0.85

Tested by

no test coverage detected