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);
|
|
|
|
unsigned char *ziplistPush(unsigned char *zl, unsigned char *entry, unsigned int elen, int where);
|
|
|
|
unsigned char *ziplistPop(unsigned char *zl, sds *target, int where);
|
|
|
|
unsigned char *ziplistIndex(unsigned char *zl, unsigned int index);
|
|
|
|
unsigned char *ziplistNext(unsigned char *p);
|
|
|
|
unsigned int ziplistGet(unsigned char *p, unsigned char **e, unsigned int *elen, long long *v);
|
|
|
|
unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
|
|
|
|
unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
|
2010-05-22 13:35:40 -04:00
|
|
|
unsigned int ziplistCompare(unsigned char *p, unsigned char *entry, unsigned int elen);
|
|
|
|
unsigned int ziplistLen(unsigned char *zl);
|