2010-05-21 06:54:01 -04:00
|
|
|
#define ZIPLIST_HEAD 0
|
|
|
|
#define ZIPLIST_TAIL 1
|
2010-05-22 10:25:18 -04:00
|
|
|
|
|
|
|
unsigned char *ziplistNew(void);
|
2010-05-31 15:44:12 -04:00
|
|
|
unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
|
2010-05-22 10:25:18 -04:00
|
|
|
unsigned char *ziplistPop(unsigned char *zl, sds *target, int where);
|
2010-05-29 16:17:16 -04:00
|
|
|
unsigned char *ziplistIndex(unsigned char *zl, int index);
|
2010-05-31 14:17:21 -04:00
|
|
|
unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
|
|
|
|
unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
|
2010-05-31 15:44:12 -04:00
|
|
|
unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval);
|
|
|
|
unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen);
|
2010-05-31 14:18:23 -04:00
|
|
|
unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
|
2010-05-22 10:25:18 -04:00
|
|
|
unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
|
2010-05-31 15:44:12 -04:00
|
|
|
unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
|
2010-05-29 05:33:38 -04:00
|
|
|
unsigned int ziplistLen(unsigned char *zl);
|
|
|
|
unsigned int ziplistSize(unsigned char *zl);
|