Merge pull request #3336 from yossigo/create_string_from_string

Add RedisModule_CreateStringFromString().
This commit is contained in:
Salvatore Sanfilippo
2016-06-23 16:16:28 +02:00
committed by GitHub
5 changed files with 26 additions and 2 deletions

View File

@ -1285,7 +1285,7 @@ robj *createObject(int type, void *ptr);
robj *createStringObject(const char *ptr, size_t len);
robj *createRawStringObject(const char *ptr, size_t len);
robj *createEmbeddedStringObject(const char *ptr, size_t len);
robj *dupStringObject(robj *o);
robj *dupStringObject(const robj *o);
int isSdsRepresentableAsLongLong(sds s, long long *llval);
int isObjectRepresentableAsLongLong(robj *o, long long *llongval);
robj *tryObjectEncoding(robj *o);