summaryrefslogtreecommitdiff
path: root/src/sds.h
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-12-10 15:40:34 -0500
committerMatt Stancliff <matt@genges.com>2015-01-02 11:16:08 -0500
commite1619772dbac6567462db4fac524e8df7e2556da (patch)
treeab008a4143655a6c305c9708dd64c760a9fcc631 /src/sds.h
parentc6bf20c2a7423f464210dd19dd59073a6bb846a2 (diff)
downloadredis-e1619772dbac6567462db4fac524e8df7e2556da.tar.gz
Add sdsnative()
Use the existing memory space for an SDS to convert it to a regular character buffer so we don't need to allocate duplicate space just to extract a usable buffer for native operations.
Diffstat (limited to 'src/sds.h')
-rw-r--r--src/sds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sds.h b/src/sds.h
index 93dd4f28e..756ae0b53 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -60,6 +60,7 @@ sds sdsempty(void);
size_t sdslen(const sds s);
sds sdsdup(const sds s);
void sdsfree(sds s);
+char *sdsnative(sds s);
size_t sdsavail(const sds s);
sds sdsgrowzero(sds s, size_t len);
sds sdscatlen(sds s, const void *t, size_t len);