Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 9 of 9) sorted by relevance

/redis-3.2.3/src/
H A Danet.c412 ssize_t nread, totlen = 0; in anetRead() local
413 while(totlen != count) { in anetRead()
414 nread = read(fd,buf,count-totlen); in anetRead()
415 if (nread == 0) return totlen; in anetRead()
417 totlen += nread; in anetRead()
420 return totlen; in anetRead()
427 ssize_t nwritten, totlen = 0; in anetWrite() local
428 while(totlen != count) { in anetWrite()
430 if (nwritten == 0) return totlen; in anetWrite()
432 totlen += nwritten; in anetWrite()
[all …]
H A Dzipmap.c138 … *zipmapLookupRaw(unsigned char *zm, unsigned char *key, unsigned int klen, unsigned int *totlen) { in zipmapLookupRaw() argument
151 if (totlen != NULL) { in zipmapLookupRaw()
164 if (totlen != NULL) *totlen = (unsigned int)(p-zm)+1; in zipmapLookupRaw()
368 unsigned int totlen; in zipmapBlobLen() local
369 zipmapLookupRaw(zm,NULL,0,&totlen); in zipmapBlobLen()
370 return totlen; in zipmapBlobLen()
H A Dcluster.c1543 uint32_t totlen = ntohl(hdr->totlen); in clusterProcessPacket() local
2117 int totlen = 0; in clusterBuildMessageHdr() local
2169 hdr->totlen = htonl(totlen); in clusterBuildMessageHdr()
2224 if (totlen < (int)sizeof(clusterMsg)) totlen = sizeof(clusterMsg); in clusterSendPing()
2288 hdr->totlen = htonl(totlen); in clusterSendPing()
2336 uint32_t totlen; in clusterSendPublish() local
2350 hdr->totlen = htonl(totlen); in clusterSendPublish()
2427 uint32_t totlen; in clusterRequestFailoverAuth() local
2435 hdr->totlen = htonl(totlen); in clusterRequestFailoverAuth()
2448 hdr->totlen = htonl(totlen); in clusterSendFailoverAuth()
[all …]
H A Dt_string.c436 size_t totlen; in appendCommand() local
445 totlen = stringObjectLen(c->argv[2]); in appendCommand()
453 totlen = stringObjectLen(o)+sdslen(append->ptr); in appendCommand()
454 if (checkStringLength(c,totlen) != C_OK) in appendCommand()
460 totlen = sdslen(o->ptr); in appendCommand()
465 addReplyLongLong(c,totlen); in appendCommand()
H A Dcluster.h226 uint32_t totlen; /* Total length of this message */ member
H A Dziplist.c527 unsigned int i, totlen, deleted = 0; in __ziplistDelete() local
538 totlen = p-first.p; in __ziplistDelete()
539 if (totlen > 0) { in __ziplistDelete()
551 intrev32ifbe(intrev32ifbe(ZIPLIST_TAIL_OFFSET(zl))-totlen); in __ziplistDelete()
573 zl = ziplistResize(zl, intrev32ifbe(ZIPLIST_BYTES(zl))-totlen+nextdiff); in __ziplistDelete()
H A Dredis-cli.c2072 unsigned long long sampled = 0, total_keys, totlen=0, *sizes=NULL, it=0; in findBigKeys() local
2131 totlen += keys->element[i]->len; in findBigKeys()
2173 totlen, totlen ? (double)totlen/sampled : 0); in findBigKeys()
/redis-3.2.3/deps/hiredis/
H A Dhiredis.c694 int totlen = 0; in redisvFormatCommand() local
875 totlen += 1+intlen(argc)+2; in redisvFormatCommand()
878 cmd = malloc(totlen+1); in redisvFormatCommand()
890 assert(pos == totlen); in redisvFormatCommand()
895 return totlen; in redisvFormatCommand()
943 int totlen, j; in redisFormatCommandArgv() local
946 totlen = 1+intlen(argc)+2; in redisFormatCommandArgv()
949 totlen += bulklen(len); in redisFormatCommandArgv()
953 cmd = malloc(totlen+1); in redisFormatCommandArgv()
966 assert(pos == totlen); in redisFormatCommandArgv()
[all …]
/redis-3.2.3/tests/support/
H A Dredis.tcl269 set totlen [dict get $::redis::state($id) bulk]