]>
Commit | Line | Data |
---|---|---|
11ac6ff6 PN |
1 | #define ZIPLIST_HEAD 0 |
2 | #define ZIPLIST_TAIL 1 | |
c7019f70 PN |
3 | |
4 | unsigned char *ziplistNew(void); | |
b6eb9703 | 5 | unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where); |
c7019f70 | 6 | unsigned char *ziplistPop(unsigned char *zl, sds *target, int where); |
c03206fd | 7 | unsigned char *ziplistIndex(unsigned char *zl, int index); |
8632fb30 PN |
8 | unsigned char *ziplistNext(unsigned char *zl, unsigned char *p); |
9 | unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p); | |
b6eb9703 PN |
10 | unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval); |
11 | unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen); | |
6a8e35ad | 12 | unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p); |
c7019f70 | 13 | unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num); |
b6eb9703 | 14 | unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen); |
4812cf28 PN |
15 | unsigned int ziplistLen(unsigned char *zl); |
16 | unsigned int ziplistSize(unsigned char *zl); |