]> git.saurik.com Git - redis.git/blob - src/ziplist.h
Scripting: require at least one argument for redis.call().
[redis.git] / src / ziplist.h
1 #define ZIPLIST_HEAD 0
2 #define ZIPLIST_TAIL 1
3
4 unsigned char *ziplistNew(void);
5 unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
6 unsigned char *ziplistIndex(unsigned char *zl, int index);
7 unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
8 unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
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);
11 unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
12 unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
13 unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
14 unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int skip);
15 unsigned int ziplistLen(unsigned char *zl);
16 size_t ziplistBlobLen(unsigned char *zl);