Home
last modified time | relevance | path

Searched refs:zl (Results 1 – 12 of 12) sorted by relevance

/redis-3.2.3/src/
H A Dziplist.c148 #define ZIPLIST_ENTRY_TAIL(zl) ((zl)+intrev32ifbe(ZIPLIST_TAIL_OFFSET(zl))) argument
149 #define ZIPLIST_ENTRY_END(zl) ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-1) argument
438 zl = zrealloc(zl,len); in ziplistResize()
573 zl = ziplistResize(zl, intrev32ifbe(ZIPLIST_BYTES(zl))-totlen+nextdiff); in __ziplistDelete()
898 zl = __ziplistDelete(zl,*p,1); in ziplistDelete()
1230 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest()
1233 zl = pop(zl,ZIPLIST_HEAD); in ziplistTest()
1236 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest()
1239 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest()
1422 zl = ziplistDelete(zl,&p); in ziplistTest()
[all …]
H A Dziplist.h39 unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
40 unsigned char *ziplistIndex(unsigned char *zl, int index);
41 unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
42 unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
44 unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int sl…
45 unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
46 unsigned char *ziplistDeleteRange(unsigned char *zl, int index, unsigned int num);
49 unsigned int ziplistLen(unsigned char *zl);
50 size_t ziplistBlobLen(unsigned char *zl);
H A Dt_zset.c944 zl = ziplistDelete(zl,&p); in zzlDelete()
945 zl = ziplistDelete(zl,&p); in zzlDelete()
1006 zl = zzlInsertAt(zl,NULL,ele,score); in zzlInsert()
1028 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByScore()
1029 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByScore()
1055 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByLex()
1056 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByLex()
1665 it->zl.zl = op->subject->ptr; in zuiInitIterator()
1666 it->zl.eptr = ziplistIndex(it->zl.zl,0); in zuiInitIterator()
1668 it->zl.sptr = ziplistNext(it->zl.zl,it->zl.eptr); in zuiInitIterator()
[all …]
H A Dquicklist.c141 node->zl = NULL; in quicklistCreateNode()
528 node->zl = zl; in quicklistAppendZiplist()
559 zfree(zl); in quicklistAppendValuesFromZiplist()
617 node->zl = ziplistDelete(node->zl, p); in quicklistDelIndex()
702 if ((ziplistMerge(&a->zl, &b->zl))) { in _quicklistZiplistMerge()
805 memcpy(new_node->zl, node->zl, zl_sz); in _quicklistSplitNode()
883 node->zl = ziplistInsert(node->zl, next, value, sz); in _quicklistInsert()
891 node->zl = ziplistInsert(node->zl, entry->zi, value, sz); in _quicklistInsert()
931 new_node->zl = ziplistPush(new_node->zl, value, sz, in _quicklistInsert()
1199 memcpy(node->zl, current->zl, lzf_sz); in quicklistDup()
[all …]
H A Dt_hash.c77 zl = o->ptr; in hashTypeGetFromZiplist()
201 zl = o->ptr; in hashTypeSet()
212 zl = ziplistDelete(zl, &vptr); in hashTypeSet()
215 zl = ziplistInsert(zl, vptr, value->ptr, sdslen(value->ptr)); in hashTypeSet()
221 zl = ziplistPush(zl, field->ptr, sdslen(field->ptr), ZIPLIST_TAIL); in hashTypeSet()
222 zl = ziplistPush(zl, value->ptr, sdslen(value->ptr), ZIPLIST_TAIL); in hashTypeSet()
224 o->ptr = zl; in hashTypeSet()
254 zl = o->ptr; in hashTypeDelete()
259 zl = ziplistDelete(zl,&fptr); in hashTypeDelete()
260 zl = ziplistDelete(zl,&fptr); in hashTypeDelete()
[all …]
H A Dquicklist.h47 unsigned char *zl; member
128 void quicklistAppendZiplist(quicklist *quicklist, unsigned char *zl);
130 unsigned char *zl);
132 unsigned char *zl);
H A Dobject.c192 unsigned char *zl = ziplistNew(); in createZiplistObject() local
193 robj *o = createObject(OBJ_LIST,zl); in createZiplistObject()
213 unsigned char *zl = ziplistNew(); in createHashObject() local
214 robj *o = createObject(OBJ_HASH, zl); in createHashObject()
231 unsigned char *zl = ziplistNew(); in createZsetZiplistObject() local
232 robj *o = createObject(OBJ_ZSET,zl); in createZsetZiplistObject()
H A Dgeo.c37 unsigned char *zzlFirstInRange(unsigned char *zl, zrangespec *range);
233 unsigned char *zl = zobj->ptr; in geoGetPointsInRange() local
240 if ((eptr = zzlFirstInRange(zl, &range)) == NULL) { in geoGetPointsInRange()
245 sptr = ziplistNext(zl, eptr); in geoGetPointsInRange()
259 zzlNext(zl, &eptr, &sptr); in geoGetPointsInRange()
H A Drdb.c594 if ((n = rdbSaveRawString(rdb,node->zl,node->sz)) == -1) return -1; in rdbSaveObject()
1145 unsigned char *zl = rdbGenericLoadStringObject(rdb,RDB_LOAD_PLAIN); in rdbLoadObject() local
1146 if (zl == NULL) return NULL; in rdbLoadObject()
1147 quicklistAppendZiplist(o->ptr, zl); in rdbLoadObject()
1170 unsigned char *zl = ziplistNew(); in rdbLoadObject() local
1179 zl = ziplistPush(zl, fstr, flen, ZIPLIST_TAIL); in rdbLoadObject()
1180 zl = ziplistPush(zl, vstr, vlen, ZIPLIST_TAIL); in rdbLoadObject()
1184 o->ptr = zl; in rdbLoadObject()
H A Ddebug.c176 unsigned char *zl = o->ptr; in computeDatasetDigest() local
183 eptr = ziplistIndex(zl,0); in computeDatasetDigest()
185 sptr = ziplistNext(zl,eptr); in computeDatasetDigest()
203 zzlNext(zl,&eptr,&sptr); in computeDatasetDigest()
H A Daof.c872 unsigned char *zl = o->ptr; in rewriteSortedSetObject() local
879 eptr = ziplistIndex(zl,0); in rewriteSortedSetObject()
881 sptr = ziplistNext(zl,eptr); in rewriteSortedSetObject()
902 zzlNext(zl,&eptr,&sptr); in rewriteSortedSetObject()
H A Dserver.h1292 unsigned char *zzlInsert(unsigned char *zl, robj *ele, double score);
1297 void zzlNext(unsigned char *zl, unsigned char **eptr, unsigned char **sptr);
1298 void zzlPrev(unsigned char *zl, unsigned char **eptr, unsigned char **sptr);