]> git.saurik.com Git - redis.git/blame - ziplist.h
ziplistDelete no longer needs a direction now ziplistPrev is fixed
[redis.git] / ziplist.h
CommitLineData
11ac6ff6
PN
1#define ZIPLIST_HEAD 0
2#define ZIPLIST_TAIL 1
c7019f70
PN
3
4unsigned char *ziplistNew(void);
a24ba809 5unsigned char *ziplistPush(unsigned char *zl, char *s, unsigned int slen, int where);
c7019f70 6unsigned char *ziplistPop(unsigned char *zl, sds *target, int where);
c03206fd 7unsigned char *ziplistIndex(unsigned char *zl, int index);
8632fb30
PN
8unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
9unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
a24ba809 10unsigned int ziplistGet(unsigned char *p, char **sstr, unsigned int *slen, long long *sval);
033fb554 11unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, char *s, unsigned int slen);
6a8e35ad 12unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
c7019f70 13unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
a24ba809 14unsigned int ziplistCompare(unsigned char *p, char *entry, unsigned int elen);
4812cf28
PN
15unsigned int ziplistLen(unsigned char *zl);
16unsigned int ziplistSize(unsigned char *zl);