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

Function RM_LoadString

src/module.cpp:4871–4873  ·  view source on GitHub ↗

In the context of the rdb_load method of a module data type, loads a string * from the RDB file, that was previously saved with RedisModule_SaveString() * functions family. * * The returned string is a newly allocated RedisModuleString object, and * the user should at some point free it with a call to RedisModule_FreeString(). * * If the data structure does not store strings as RedisModuleS

Source from the content-addressed store, hash-verified

4869 * If the data structure does not store strings as RedisModuleString objects,
4870 * the similar function RedisModule_LoadStringBuffer() could be used instead. */
4871RedisModuleString *RM_LoadString(RedisModuleIO *io) {
4872 return (RedisModuleString*)moduleLoadString(io,0,NULL);
4873}
4874
4875/* Like RedisModule_LoadString() but returns an heap allocated string that
4876 * was allocated with RedisModule_Alloc(), and can be resized or freed with

Callers

nothing calls this directly

Calls 1

moduleLoadStringFunction · 0.85

Tested by

no test coverage detected