mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
SDS: changes to unify Redis SDS with antirez/sds repo.
This commit is contained in:
@ -33,6 +33,13 @@
|
||||
|
||||
static void setProtocolError(redisClient *c, int pos);
|
||||
|
||||
/* Return the size consumed from the allocator, for the specified SDS string,
|
||||
* including internal fragmentation. This function is used in order to compute
|
||||
* the client output buffer size. */
|
||||
size_t sdsZmallocSize(sds s) {
|
||||
void *sh = sdsAllocPtr(s);
|
||||
return zmalloc_size(sh);
|
||||
}
|
||||
|
||||
/* Return the amount of memory used by the sds string at object->ptr
|
||||
* for a string object. */
|
||||
|
Reference in New Issue
Block a user