]> git.saurik.com Git - redis.git/blame - src/ziplist.h
Fix MULTI / EXEC rendering in MONITOR output.
[redis.git] / src / ziplist.h
CommitLineData
11ac6ff6
PN
1#define ZIPLIST_HEAD 0
2#define ZIPLIST_TAIL 1
c7019f70
PN
3
4unsigned char *ziplistNew(void);
b6eb9703 5unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
c03206fd 6unsigned char *ziplistIndex(unsigned char *zl, int index);
8632fb30
PN
7unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
8unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
b6eb9703
PN
9unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval);
10unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen);
6a8e35ad 11unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
c7019f70 12unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
b6eb9703 13unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
fe458402 14unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int skip);
4812cf28 15unsigned int ziplistLen(unsigned char *zl);
d4fb9f41 16size_t ziplistBlobLen(unsigned char *zl);