]>
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); |
c03206fd | 6 | unsigned char *ziplistIndex(unsigned char *zl, int index); |
8632fb30 PN |
7 | unsigned char *ziplistNext(unsigned char *zl, unsigned char *p); |
8 | unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p); | |
b6eb9703 PN |
9 | unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval); |
10 | unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen); | |
6a8e35ad | 11 | unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p); |
c7019f70 | 12 | unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num); |
b6eb9703 | 13 | unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen); |
fe458402 | 14 | unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int skip); |
4812cf28 | 15 | unsigned int ziplistLen(unsigned char *zl); |
d4fb9f41 | 16 | size_t ziplistBlobLen(unsigned char *zl); |