summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2021-02-25 21:53:34 -0800
committermichael-grunder <michael.grunder@gmail.com>2021-02-25 21:53:34 -0800
commitd6a0b192b414dc261589d4c2d16577c2192b39c0 (patch)
tree6093c8cca18febdf37d6b1b4ed41716d02cb8ae4 /hiredis.h
parent53a8144c816ba1f468d90d30e2eef71fcbd3ffd3 (diff)
parent410c24d2a977288ec97ffac23a303597b9f98d67 (diff)
Merge branch 'reader-updates'
Updates and improvements to the RESP3 protocol reader. * Fix the unset len field when creating RESP3 double objects * Fix RESP3 double infinity parsing * Add additional validations when parsing various reply types * Fix the parent type assertions in certain default reply object creation callbacks (mostly to include PUSH as a parent). * Additional reader test cases * Implement RESP3 BIGNUM support * Refactor seekNewline() to use memchr()
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index a629930..e77a88a 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -112,7 +112,8 @@ typedef struct redisReply {
double dval; /* The double when type is REDIS_REPLY_DOUBLE */
size_t len; /* Length of string */
char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING
- REDIS_REPLY_VERB, and REDIS_REPLY_DOUBLE (in additional to dval). */
+ REDIS_REPLY_VERB, REDIS_REPLY_DOUBLE (in additional to dval),
+ and REDIS_REPLY_BIGNUM. */
char vtype[4]; /* Used for REDIS_REPLY_VERB, contains the null
terminated 3 character content type, such as "txt". */
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */