]> git.saurik.com Git - redis.git/blame_incremental - src/ziplist.h
Fix case in RPOPLPUSH.
[redis.git] / src / ziplist.h
... / ...
CommitLineData
1#define ZIPLIST_HEAD 0
2#define ZIPLIST_TAIL 1
3
4unsigned char *ziplistNew(void);
5unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
6unsigned char *ziplistIndex(unsigned char *zl, int index);
7unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
8unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
9unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval);
10unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen);
11unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
12unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
13unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
14unsigned int ziplistLen(unsigned char *zl);
15unsigned int ziplistSize(unsigned char *zl);