mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
fixed the doc with a right function name
This commit is contained in:
parent
e443ad9c29
commit
e711a9ac45
@ -160,9 +160,10 @@ you may need to directly access the string object.
|
|||||||
|
|
||||||
There are a few functions in order to work with string objects:
|
There are a few functions in order to work with string objects:
|
||||||
|
|
||||||
const char *RedisModule_StringPtr(RedisModuleString *string, size_t *len);
|
const char *RedisModule_StringPtrLen(RedisModuleString *string, size_t *len);
|
||||||
|
|
||||||
The above function accesses a string by returning its pointer and length.
|
The above function accesses a string by returning its pointer and setting its
|
||||||
|
length in `len`.
|
||||||
You should never write to a string object pointer, as you can see from the
|
You should never write to a string object pointer, as you can see from the
|
||||||
`const` pointer qualifier.
|
`const` pointer qualifier.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user