| /redis-3.2.3/deps/lua/src/ |
| H A D | strbuf.h | 37 int length; member 80 s->length = 0; in strbuf_reset() 103 return s->buf + s->length; in strbuf_empty_ptr() 108 s->length += len; in strbuf_extend_length() 113 return s->length; in strbuf_length() 119 s->buf[s->length++] = c; in strbuf_append_char() 124 s->buf[s->length++] = c; in strbuf_append_char_unsafe() 131 s->length += len; in strbuf_append_mem() 137 s->length += len; in strbuf_append_mem_unsafe() 142 s->buf[s->length] = 0; in strbuf_ensure_null() [all …]
|
| H A D | strbuf.c | 55 s->length = 0; in strbuf_init() 98 (long)s, s->reallocs, s->length, s->size); in debug_stats() 126 *len = s->length; in strbuf_free_to_string() 190 strbuf_resize(s, s->length + 1); in strbuf_append_string() 194 s->buf[s->length] = str[i]; in strbuf_append_string() 195 s->length++; in strbuf_append_string() 210 fmt_len = vsnprintf(s->buf + s->length, len, fmt, arg); in strbuf_append_fmt() 216 s->length += fmt_len; in strbuf_append_fmt() 236 fmt_len = vsnprintf(s->buf + s->length, empty_len + 1, fmt, arg); in strbuf_append_fmt_retry() 244 strbuf_resize(s, s->length + fmt_len); in strbuf_append_fmt_retry() [all …]
|
| /redis-3.2.3/src/ |
| H A D | intset.c | 100 is->length = 0; in intsetNew() 120 if (intrev32ifbe(is->length) == 0) { in intsetSearch() 160 int length = intrev32ifbe(is->length); in intsetUpgradeAndAdd() local 170 while(length--) in intsetUpgradeAndAdd() 171 _intsetSet(is,length+prepend,_intsetGetEncoded(is,length,curenc)); in intsetUpgradeAndAdd() 178 is->length = intrev32ifbe(intrev32ifbe(is->length)+1); in intsetUpgradeAndAdd() 229 is->length = intrev32ifbe(intrev32ifbe(is->length)+1); in intsetAdd() 240 uint32_t len = intrev32ifbe(is->length); in intsetRemove() 248 is->length = intrev32ifbe(len-1); in intsetRemove() 267 if (pos < intrev32ifbe(is->length)) { in intsetGet() [all …]
|
| H A D | sparkline.c | 59 seq->length = 0; in createSparklineSequence() 67 if (seq->length == 0) { in sparklineSequenceAddSample() 73 seq->samples = zrealloc(seq->samples,sizeof(struct sample)*(seq->length+1)); in sparklineSequenceAddSample() 74 seq->samples[seq->length].value = value; in sparklineSequenceAddSample() 75 seq->samples[seq->length].label = label; in sparklineSequenceAddSample() 76 seq->length++; in sparklineSequenceAddSample() 84 for (j = 0; j < seq->length; j++) in freeSparklineSequence() 168 for (j = 0; j < seq->length; j += columns) { in sparklineRender() 169 int sublen = (seq->length-j) < columns ? (seq->length-j) : columns; in sparklineRender()
|
| H A D | redis-check-aof.c | 70 int readBytes(FILE *fp, char *target, long length) { in readBytes() argument 73 real = fread(target,1,length,fp); in readBytes() 74 if (real != length) { in readBytes() 75 ERROR("Expected to read %ld bytes, got %ld bytes",length,real); in readBytes()
|
| H A D | t_hash.c | 285 unsigned long length = ULONG_MAX; in hashTypeLength() local 288 length = ziplistLen(o->ptr) / 2; in hashTypeLength() 290 length = dictSize((dict*)o->ptr); in hashTypeLength() 295 return length; in hashTypeLength() 747 int length, count = 0; in genericHgetallCommand() local 755 length = hashTypeLength(o) * multiplier; in genericHgetallCommand() 756 addReplyMultiBulkLen(c, length); in genericHgetallCommand() 771 serverAssert(count == length); in genericHgetallCommand()
|
| H A D | sparkline.h | 40 int length; member
|
| H A D | intset.h | 37 uint32_t length; member
|
| H A D | util.c | 302 uint32_t const length = digits10(value)+negative; in ll2string() local 303 if (length >= dstlen) return 0; in ll2string() 306 uint32_t next = length; in ll2string() 328 return length; in ll2string()
|
| H A D | t_zset.c | 71 zsl->length = 0; in zslCreate() 162 zsl->length++; in zslInsert() 184 zsl->length--; in zslDeleteNode() 1082 int length = -1; in zsetLength() local 1084 length = zzlLength(zobj->ptr); in zsetLength() 1086 length = ((zset*)zobj->ptr)->zsl->length; in zsetLength() 1090 return length; in zsetLength() 1727 return zs->zsl->length; in zuiLength() 2153 if (dstzset->zsl->length) { in zunionInterGenericCommand() 2554 count -= (zsl->length - rank); in zcountCommand() [all …]
|
| /redis-3.2.3/deps/jemalloc/test/integration/ |
| H A D | chunk.c | 53 chunk_commit(void *chunk, size_t size, size_t offset, size_t length, in chunk_commit() argument 59 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_commit() 61 err = old_hooks.commit(chunk, size, offset, length, arena_ind); in chunk_commit() 67 chunk_decommit(void *chunk, size_t size, size_t offset, size_t length, in chunk_decommit() argument 73 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_decommit() 77 err = old_hooks.decommit(chunk, size, offset, length, arena_ind); in chunk_decommit() 83 chunk_purge(void *chunk, size_t size, size_t offset, size_t length, in chunk_purge() argument 88 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_purge() 91 return (old_hooks.purge(chunk, size, offset, length, arena_ind)); in chunk_purge()
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | chunk.c | 26 size_t length, unsigned arena_ind); 28 size_t length, unsigned arena_ind); 30 size_t length, unsigned arena_ind); 625 length)); in chunk_commit_default() 634 length)); in chunk_decommit_default() 644 assert(length != 0); in chunk_purge_arena() 645 assert((length & PAGE_MASK) == 0); in chunk_purge_arena() 648 length)); in chunk_purge_arena() 657 length)); in chunk_purge_default() 662 size_t size, size_t offset, size_t length) in chunk_purge_wrapper() argument [all …]
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/ |
| H A D | jemalloc_typedefs.h.in | 16 * chunk_commit(void *chunk, size_t size, size_t offset, size_t length, 23 * chunk_decommit(void *chunk, size_t size, size_t offset, size_t length, 30 * chunk_purge(void *chunk, size_t size, size_t offset, size_t length,
|
| /redis-3.2.3/tests/unit/ |
| H A D | memefficiency.tcl | 10 incr written [string length $key] 11 incr written [string length $val]
|
| H A D | bitops.tcl | 4 string length [regsub -all {0} $bits {}] 14 if {[string length $bits] > $maxlen} { 15 set maxlen [string length $bits] 20 if {[string length $b($j)] < $maxlen} { 21 append b($j) [string repeat 0 [expr $maxlen-[string length $b($j)]]] 77 set l [string length $str] 157 test {BITOP shorter keys are zero-padded to the key with max length} {
|
| H A D | latency-monitor.tcl | 43 assert {[string length [r latency doctor]] > 0}
|
| H A D | protocol.tcl | 84 incr payload_size [string length $payload]
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | chunk.h | 70 size_t length); 72 void *chunk, size_t size, size_t offset, size_t length);
|
| /redis-3.2.3/tests/ |
| H A D | test_helper.tcl | 123 if {[string length $level] == 0 || ![string is integer $level]} { 389 puts $fd [string length $payload] 483 set count [expr {$count-[string length $buf]}] 546 if {[string length $err] > 0} {
|
| /redis-3.2.3/tests/support/ |
| H A D | redis.tcl | 270 set buflen [string length [dict get $::redis::state($id) buf]] 273 set nread [string length $data] 276 if {[string length [dict get $::redis::state($id) buf]] ==
|
| H A D | server.tcl | 182 if {[string length $line] > 0 && [string index $line 0] ne "#"} { 303 if {[string length $warnings] > 0} {
|
| /redis-3.2.3/tests/integration/ |
| H A D | aof-race.tcl | 24 while {[string length [read $bench]] > 0} {}
|
| H A D | redis-cli.tcl | 18 while {[string length $buf] == 0} {
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | hash.tcl | 396 if {[string length $smallhash($k)] ne [r hstrlen smallhash $k]} { 407 if {[string length $bighash($k)] ne [r hstrlen bighash $k]} { 433 set len1 [string length $v]
|
| /redis-3.2.3/deps/linenoise/ |
| H A D | README.markdown | 71 the maximum editable line length is `LINENOISE_MAX_LINE`. When instead the 74 length of the line that can be returned. 120 Note that for history to work, you have to set a length for the history
|