Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 15 of 15) sorted by relevance

/redis-3.2.3/src/
H A Dzipmap.c171 l = klen+vlen+3; in zipmapRequiredLength()
173 if (vlen >= ZIPMAP_BIGLEN) l += 4; in zipmapRequiredLength()
273 p += zipmapEncodeLength(p,vlen); in zipmapSet()
275 memcpy(p,val,vlen); in zipmapSet()
339 *vlen = zipmapDecodeLength(p); in zipmapGet()
437 unsigned int vlen, i; in zipmapTest() local
443 vlen, vlen, value); in zipmapTest()
450 unsigned int vlen; in zipmapTest() local
454 vlen, vlen, value); in zipmapTest()
461 unsigned int klen, vlen; in zipmapTest() local
[all …]
H A Dt_hash.c67 unsigned int *vlen, in hashTypeGetFromZiplist() argument
91 ret = ziplistGet(vptr, vstr, vlen, vll); in hashTypeGetFromZiplist()
123 unsigned int vlen = UINT_MAX; in hashTypeGetObject() local
153 unsigned int vlen = UINT_MAX; in hashTypeGetValueLength() local
157 len = vstr ? vlen : sdigits10(vll); in hashTypeGetValueLength()
174 unsigned int vlen = UINT_MAX; in hashTypeExists() local
364 unsigned int *vlen, in hashTypeCurrentFromZiplist() argument
400 unsigned int vlen = UINT_MAX; in hashTypeCurrentObject() local
618 unsigned int vlen = UINT_MAX; in addHashFieldToReply() local
722 unsigned int vlen = UINT_MAX; in addHashIteratorCursorToReply() local
[all …]
H A Dzipmap.h39 …ar *zm, unsigned char *key, unsigned int klen, unsigned char *val, unsigned int vlen, int *update);
42 …gned char *zm, unsigned char **key, unsigned int *klen, unsigned char **value, unsigned int *vlen);
43 …signed char *zm, unsigned char *key, unsigned int klen, unsigned char **value, unsigned int *vlen);
H A Dconfig.c782 int vlen, j; local
788 if (vlen & 1) {
789 sdsfreesplitres(v,vlen);
792 for (j = 0; j < vlen; j++) {
806 for (j = 0; j < vlen; j += 2) {
814 sdsfreesplitres(v,vlen);
821 int vlen, j; local
825 if (vlen % 4) {
826 sdsfreesplitres(v,vlen);
833 for (j = 0; j < vlen; j++) {
[all …]
H A Dt_zset.c637 unsigned int vlen; in zzlGetScore() local
646 memcpy(buf,vstr,vlen); in zzlGetScore()
647 buf[vlen] = '\0'; in zzlGetScore()
661 unsigned int vlen; in ziplistGetObject() local
677 unsigned int vlen; in zzlCompareElements() local
689 minlen = (vlen < clen) ? vlen : clen; in zzlCompareElements()
691 if (cmp == 0) return vlen-clen; in zzlCompareElements()
1104 unsigned int vlen; in zsetConvert() local
2226 unsigned int vlen; in zrangeGenericCommand() local
2346 unsigned int vlen; in genericZrangebyscoreCommand() local
[all …]
H A Dziplist.h48 unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int s…
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()
1144 unsigned int vlen; in pop() local
1148 if (ziplistGet(p,&vstr,&vlen,&vlong)) { in pop()
1155 if (vlen && fwrite(vstr,vlen,1,stdout) == 0) perror("fwrite"); in pop()
H A Daof.c875 unsigned int vlen; in rewriteSortedSetObject() local
885 serverAssert(ziplistGet(eptr,&vstr,&vlen,&vll)); in rewriteSortedSetObject()
898 if (rioWriteBulkString(r,(char*)vstr,vlen) == 0) return 0; in rewriteSortedSetObject()
944 unsigned int vlen = UINT_MAX; in rioWriteHashIteratorCursor() local
947 hashTypeCurrentFromZiplist(hi, what, &vstr, &vlen, &vll); in rioWriteHashIteratorCursor()
949 return rioWriteBulkString(r, (char*)vstr, vlen); in rioWriteHashIteratorCursor()
H A Drdb.c738 int vlen = ll2string(buf,sizeof(buf),val); in rdbSaveAuxFieldStrInt() local
739 return rdbSaveAuxField(rdb,key,strlen(key),buf,vlen); in rdbSaveAuxFieldStrInt()
1173 unsigned int flen, vlen; in rdbLoadObject() local
1176 while ((zi = zipmapNext(zi, &fstr, &flen, &vstr, &vlen)) != NULL) { in rdbLoadObject()
1178 if (vlen > maxlen) maxlen = vlen; in rdbLoadObject()
1180 zl = ziplistPush(zl, vstr, vlen, ZIPLIST_TAIL); in rdbLoadObject()
H A Dgeo.c236 unsigned int vlen = 0; in geoGetPointsInRange() local
254 ziplistGet(eptr, &vstr, &vlen, &vlong); in geoGetPointsInRange()
256 sdsnewlen(vstr,vlen); in geoGetPointsInRange()
H A Dquicklist.c1329 unsigned int vlen; in quicklistPopCustom() local
1353 if (ziplistGet(p, &vstr, &vlen, &vlong)) { in quicklistPopCustom()
1356 *data = saver(vstr, vlen); in quicklistPopCustom()
1358 *sz = vlen; in quicklistPopCustom()
1388 unsigned int vlen; in quicklistPop() local
1392 int ret = quicklistPopCustom(quicklist, where, &vstr, &vlen, &vlong, in quicklistPop()
1399 *sz = vlen; in quicklistPop()
H A Ddebug.c179 unsigned int vlen; in computeDatasetDigest() local
189 serverAssert(ziplistGet(eptr,&vstr,&vlen,&vll)); in computeDatasetDigest()
194 mixDigest(eledigest,vstr,vlen); in computeDatasetDigest()
H A Ddb.c590 unsigned int vlen; in scanGenericCommand() local
594 ziplistGet(p,&vstr,&vlen,&vll); in scanGenericCommand()
596 (vstr != NULL) ? createStringObject((char*)vstr,vlen) : in scanGenericCommand()
H A Dserver.h1373 unsigned int *vlen,
/redis-3.2.3/deps/jemalloc/src/
H A Djemalloc.c834 size_t vlen) in malloc_conf_error() argument
838 (int)vlen, v); in malloc_conf_error()
847 size_t klen, vlen; in malloc_conf_init() local
938 &vlen)) { in malloc_conf_init()
942 (sizeof(n)-1 == vlen && strncmp(n, v, vlen) == 0) in malloc_conf_init()
952 k, klen, v, vlen); \ in malloc_conf_init()
1040 k, klen, v, vlen); in malloc_conf_init()
1051 k, klen, v, vlen); in malloc_conf_init()
1081 klen, v, vlen); in malloc_conf_init()
1106 k, klen, v, vlen); in malloc_conf_init()
[all …]