diff options
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -98,6 +98,11 @@ typedef struct redisReply { } redisReply; typedef struct redisReadTask { + size_t poff; /* Protocol offset */ + size_t plen; /* Protocol length */ + size_t coff; /* Content offset */ + size_t clen; /* Content length */ + int type; int elements; /* number of elements in multibulk container */ int idx; /* index in parent (array) object */ @@ -122,6 +127,7 @@ typedef struct redisReader { char *buf; /* Read buffer */ size_t pos; /* Buffer cursor */ size_t len; /* Buffer length */ + size_t roff; /* Reply offset */ redisReadTask rstack[3]; int ridx; /* Index of current read task */ @@ -136,6 +142,7 @@ redisReader *redisReaderCreate(void); void redisReaderFree(redisReader *r); int redisReaderFeed(redisReader *r, const char *buf, size_t len); int redisReaderGetReply(redisReader *r, void **reply); +const char *redisReaderGetRaw(redisReader *r, size_t *len); /* Backwards compatibility, can be removed on big version bump. */ #define redisReplyReaderCreate redisReaderCreate |