Lines Matching refs:sptr

635 double zzlGetScore(unsigned char *sptr) {  in zzlGetScore()  argument
642 serverAssert(sptr != NULL); in zzlGetScore()
643 serverAssert(ziplistGet(sptr,&vstr,&vlen,&vlong)); in zzlGetScore()
659 robj *ziplistGetObject(unsigned char *sptr) { in ziplistGetObject() argument
664 serverAssert(sptr != NULL); in ziplistGetObject()
665 serverAssert(ziplistGet(sptr,&vstr,&vlen,&vlong)); in ziplistGetObject()
701 void zzlNext(unsigned char *zl, unsigned char **eptr, unsigned char **sptr) { in zzlNext() argument
703 serverAssert(*eptr != NULL && *sptr != NULL); in zzlNext()
705 _eptr = ziplistNext(zl,*sptr); in zzlNext()
715 *sptr = _sptr; in zzlNext()
720 void zzlPrev(unsigned char *zl, unsigned char **eptr, unsigned char **sptr) { in zzlPrev() argument
722 serverAssert(*eptr != NULL && *sptr != NULL); in zzlPrev()
734 *sptr = _sptr; in zzlPrev()
766 unsigned char *eptr = ziplistIndex(zl,0), *sptr; in zzlFirstInRange() local
773 sptr = ziplistNext(zl,eptr); in zzlFirstInRange()
774 serverAssert(sptr != NULL); in zzlFirstInRange()
776 score = zzlGetScore(sptr); in zzlFirstInRange()
785 eptr = ziplistNext(zl,sptr); in zzlFirstInRange()
794 unsigned char *eptr = ziplistIndex(zl,-2), *sptr; in zzlLastInRange() local
801 sptr = ziplistNext(zl,eptr); in zzlLastInRange()
802 serverAssert(sptr != NULL); in zzlLastInRange()
804 score = zzlGetScore(sptr); in zzlLastInRange()
814 sptr = ziplistPrev(zl,eptr); in zzlLastInRange()
815 if (sptr != NULL) in zzlLastInRange()
816 serverAssert((eptr = ziplistPrev(zl,sptr)) != NULL); in zzlLastInRange()
865 unsigned char *eptr = ziplistIndex(zl,0), *sptr; in zzlFirstInLexRange() local
879 sptr = ziplistNext(zl,eptr); /* This element score. Skip it. */ in zzlFirstInLexRange()
880 serverAssert(sptr != NULL); in zzlFirstInLexRange()
881 eptr = ziplistNext(zl,sptr); /* Next element. */ in zzlFirstInLexRange()
890 unsigned char *eptr = ziplistIndex(zl,-2), *sptr; in zzlLastInLexRange() local
905 sptr = ziplistPrev(zl,eptr); in zzlLastInLexRange()
906 if (sptr != NULL) in zzlLastInLexRange()
907 serverAssert((eptr = ziplistPrev(zl,sptr)) != NULL); in zzlLastInLexRange()
916 unsigned char *eptr = ziplistIndex(zl,0), *sptr; in zzlFind() local
920 sptr = ziplistNext(zl,eptr); in zzlFind()
921 serverAssertWithInfo(NULL,ele,sptr != NULL); in zzlFind()
925 if (score != NULL) *score = zzlGetScore(sptr); in zzlFind()
931 eptr = ziplistNext(zl,sptr); in zzlFind()
950 unsigned char *sptr; in zzlInsertAt() local
967 serverAssertWithInfo(NULL,ele,(sptr = ziplistNext(zl,eptr)) != NULL); in zzlInsertAt()
968 zl = ziplistInsert(zl,sptr,(unsigned char*)scorebuf,scorelen); in zzlInsertAt()
977 unsigned char *eptr = ziplistIndex(zl,0), *sptr; in zzlInsert() local
982 sptr = ziplistNext(zl,eptr); in zzlInsert()
983 serverAssertWithInfo(NULL,ele,sptr != NULL); in zzlInsert()
984 s = zzlGetScore(sptr); in zzlInsert()
1001 eptr = ziplistNext(zl,sptr); in zzlInsert()
1013 unsigned char *eptr, *sptr; in zzlDeleteRangeByScore() local
1024 while ((sptr = ziplistNext(zl,eptr)) != NULL) { in zzlDeleteRangeByScore()
1025 score = zzlGetScore(sptr); in zzlDeleteRangeByScore()
1042 unsigned char *eptr, *sptr; in zzlDeleteRangeByLex() local
1052 while ((sptr = ziplistNext(zl,eptr)) != NULL) { in zzlDeleteRangeByLex()
1102 unsigned char *eptr, *sptr; in zsetConvert() local
1116 sptr = ziplistNext(zl,eptr); in zsetConvert()
1117 serverAssertWithInfo(NULL,zobj,sptr != NULL); in zsetConvert()
1120 score = zzlGetScore(sptr); in zsetConvert()
1131 zzlNext(zl,&eptr,&sptr); in zsetConvert()
1611 unsigned char *eptr, *sptr; member
1668 it->zl.sptr = ziplistNext(it->zl.zl,it->zl.eptr); in zuiInitIterator()
1669 serverAssert(it->zl.sptr != NULL); in zuiInitIterator()
1775 if (it->zl.eptr == NULL || it->zl.sptr == NULL) in zuiNext()
1778 val->score = zzlGetScore(it->zl.sptr); in zuiNext()
1781 zzlNext(it->zl.zl,&it->zl.eptr,&it->zl.sptr); in zuiNext()
2224 unsigned char *eptr, *sptr; in zrangeGenericCommand() local
2235 sptr = ziplistNext(zl,eptr); in zrangeGenericCommand()
2238 serverAssertWithInfo(c,zobj,eptr != NULL && sptr != NULL); in zrangeGenericCommand()
2246 addReplyDouble(c,zzlGetScore(sptr)); in zrangeGenericCommand()
2249 zzlPrev(zl,&eptr,&sptr); in zrangeGenericCommand()
2251 zzlNext(zl,&eptr,&sptr); in zrangeGenericCommand()
2344 unsigned char *eptr, *sptr; in genericZrangebyscoreCommand() local
2365 sptr = ziplistNext(zl,eptr); in genericZrangebyscoreCommand()
2376 zzlPrev(zl,&eptr,&sptr); in genericZrangebyscoreCommand()
2378 zzlNext(zl,&eptr,&sptr); in genericZrangebyscoreCommand()
2383 score = zzlGetScore(sptr); in genericZrangebyscoreCommand()
2408 zzlPrev(zl,&eptr,&sptr); in genericZrangebyscoreCommand()
2410 zzlNext(zl,&eptr,&sptr); in genericZrangebyscoreCommand()
2505 unsigned char *eptr, *sptr; in zcountCommand() local
2518 sptr = ziplistNext(zl,eptr); in zcountCommand()
2519 score = zzlGetScore(sptr); in zcountCommand()
2524 score = zzlGetScore(sptr); in zcountCommand()
2531 zzlNext(zl,&eptr,&sptr); in zcountCommand()
2586 unsigned char *eptr, *sptr; in zlexcountCommand() local
2599 sptr = ziplistNext(zl,eptr); in zlexcountCommand()
2609 zzlNext(zl,&eptr,&sptr); in zlexcountCommand()
2696 unsigned char *eptr, *sptr; in genericZrangebylexCommand() local
2717 sptr = ziplistNext(zl,eptr); in genericZrangebylexCommand()
2728 zzlPrev(zl,&eptr,&sptr); in genericZrangebylexCommand()
2730 zzlNext(zl,&eptr,&sptr); in genericZrangebylexCommand()
2755 zzlPrev(zl,&eptr,&sptr); in genericZrangebylexCommand()
2757 zzlNext(zl,&eptr,&sptr); in genericZrangebylexCommand()
2868 unsigned char *eptr, *sptr; in zrankGenericCommand() local
2872 sptr = ziplistNext(zl,eptr); in zrankGenericCommand()
2873 serverAssertWithInfo(c,zobj,sptr != NULL); in zrankGenericCommand()
2880 zzlNext(zl,&eptr,&sptr); in zrankGenericCommand()