Home
last modified time | relevance | path

Searched refs:vstr (Results 1 – 11 of 11) sorted by relevance

/redis-3.2.3/src/
H A Dt_hash.c66 unsigned char **vstr, in hashTypeGetFromZiplist() argument
122 unsigned char *vstr = NULL; in hashTypeGetObject() local
127 if (vstr) { in hashTypeGetObject()
152 unsigned char *vstr = NULL; in hashTypeGetValueLength() local
173 unsigned char *vstr = NULL; in hashTypeExists() local
399 unsigned char *vstr = NULL; in hashTypeCurrentObject() local
404 if (vstr) { in hashTypeCurrentObject()
617 unsigned char *vstr = NULL; in addHashFieldToReply() local
625 if (vstr) { in addHashFieldToReply()
721 unsigned char *vstr = NULL; in addHashIteratorCursorToReply() local
[all …]
H A Dt_zset.c636 unsigned char *vstr; in zzlGetScore() local
645 if (vstr) { in zzlGetScore()
660 unsigned char *vstr; in ziplistGetObject() local
667 if (vstr) { in ziplistGetObject()
676 unsigned char *vstr; in zzlCompareElements() local
683 if (vstr == NULL) { in zzlCompareElements()
686 vstr = vbuf; in zzlCompareElements()
1103 unsigned char *vstr; in zsetConvert() local
1122 if (vstr == NULL) in zsetConvert()
2225 unsigned char *vstr; in zrangeGenericCommand() local
[all …]
H A Dziplist.h48 unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int s…
H A Daof.c874 unsigned char *vstr; in rewriteSortedSetObject() local
885 serverAssert(ziplistGet(eptr,&vstr,&vlen,&vll)); in rewriteSortedSetObject()
897 if (vstr != NULL) { in rewriteSortedSetObject()
898 if (rioWriteBulkString(r,(char*)vstr,vlen) == 0) return 0; in rewriteSortedSetObject()
943 unsigned char *vstr = NULL; in rioWriteHashIteratorCursor() local
947 hashTypeCurrentFromZiplist(hi, what, &vstr, &vlen, &vll); in rioWriteHashIteratorCursor()
948 if (vstr) { in rioWriteHashIteratorCursor()
949 return rioWriteBulkString(r, (char*)vstr, vlen); in rioWriteHashIteratorCursor()
H A Dgeo.c235 unsigned char *vstr = NULL; in geoGetPointsInRange() local
254 ziplistGet(eptr, &vstr, &vlen, &vlong); in geoGetPointsInRange()
255 member = (vstr == NULL) ? sdsfromlonglong(vlong) : in geoGetPointsInRange()
256 sdsnewlen(vstr,vlen); in geoGetPointsInRange()
H A Dziplist.c943 unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int s… in ziplistFind() argument
959 if (len == vlen && memcmp(q, vstr, vlen) == 0) { in ziplistFind()
967 if (!zipTryEncoding(vstr, vlen, &vll, &vencoding)) { in ziplistFind()
1143 unsigned char *p, *vstr; in pop() local
1148 if (ziplistGet(p,&vstr,&vlen,&vlong)) { in pop()
1154 if (vstr) { in pop()
1155 if (vlen && fwrite(vstr,vlen,1,stdout) == 0) perror("fwrite"); in pop()
H A Dquicklist.c1328 unsigned char *vstr; in quicklistPopCustom() local
1353 if (ziplistGet(p, &vstr, &vlen, &vlong)) { in quicklistPopCustom()
1354 if (vstr) { in quicklistPopCustom()
1356 *data = saver(vstr, vlen); in quicklistPopCustom()
1373 unsigned char *vstr; in _quicklistSaver() local
1375 vstr = zmalloc(sz); in _quicklistSaver()
1376 memcpy(vstr, data, sz); in _quicklistSaver()
1377 return vstr; in _quicklistSaver()
1387 unsigned char *vstr; in quicklistPop() local
1392 int ret = quicklistPopCustom(quicklist, where, &vstr, &vlen, &vlong, in quicklistPop()
[all …]
H A Ddebug.c178 unsigned char *vstr; in computeDatasetDigest() local
189 serverAssert(ziplistGet(eptr,&vstr,&vlen,&vll)); in computeDatasetDigest()
193 if (vstr != NULL) { in computeDatasetDigest()
194 mixDigest(eledigest,vstr,vlen); in computeDatasetDigest()
H A Ddb.c589 unsigned char *vstr; in scanGenericCommand() local
594 ziplistGet(p,&vstr,&vlen,&vll); in scanGenericCommand()
596 (vstr != NULL) ? createStringObject((char*)vstr,vlen) : in scanGenericCommand()
H A Drdb.c1172 unsigned char *fstr, *vstr; in rdbLoadObject() local
1176 while ((zi = zipmapNext(zi, &fstr, &flen, &vstr, &vlen)) != NULL) { in rdbLoadObject()
1180 zl = ziplistPush(zl, vstr, vlen, ZIPLIST_TAIL); in rdbLoadObject()
H A Dserver.h1372 unsigned char **vstr,