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

Function RM_LoadString

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

4762 * If the data structure does not store strings as RedisModuleString objects,
4763 * the similar function RedisModule_LoadStringBuffer() could be used instead. */
4764RedisModuleString *RM_LoadString(RedisModuleIO *io) {
4765 return moduleLoadString(io,0,NULL);
4766}
4767
4768/* Like RedisModule_LoadString() but returns an heap allocated string that
4769 * 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