Searched refs:enc (Results 1 – 10 of 10) sorted by relevance
| /redis-3.2.3/tests/unit/ |
| H A D | scan.tcl | 56 foreach enc {intset hashtable} { 57 test "SSCAN with encoding $enc" { 60 if {$enc eq {intset}} { 72 assert {[r object encoding set] eq $enc} 90 foreach enc {ziplist hashtable} { 91 test "HSCAN with encoding $enc" { 94 if {$enc eq {ziplist}} { 106 assert {[r object encoding hash] eq $enc} 130 foreach enc {ziplist skiplist} { 131 test "ZSCAN with encoding $enc" { [all …]
|
| H A D | sort.tcl | 37 foreach {num cmd enc title} { 46 assert_encoding $enc tosort
|
| /redis-3.2.3/src/ |
| H A D | rdb.c | 180 enc[1] = value&0xFF; in rdbEncodeInteger() 184 enc[1] = value&0xFF; in rdbEncodeInteger() 185 enc[2] = (value>>8)&0xFF; in rdbEncodeInteger() 189 enc[1] = value&0xFF; in rdbEncodeInteger() 190 enc[2] = (value>>8)&0xFF; in rdbEncodeInteger() 191 enc[3] = (value>>16)&0xFF; in rdbEncodeInteger() 192 enc[4] = (value>>24)&0xFF; in rdbEncodeInteger() 205 unsigned char enc[4]; in rdbLoadIntegerObject() local 210 val = (signed char)enc[0]; in rdbLoadIntegerObject() 214 v = enc[0]|(enc[1]<<8); in rdbLoadIntegerObject() [all …]
|
| H A D | t_hash.c | 432 void hashTypeConvertZiplist(robj *o, int enc) { in hashTypeConvertZiplist() argument 435 if (enc == OBJ_ENCODING_ZIPLIST) { in hashTypeConvertZiplist() 438 } else if (enc == OBJ_ENCODING_HT) { in hashTypeConvertZiplist() 472 void hashTypeConvert(robj *o, int enc) { in hashTypeConvert() argument 474 hashTypeConvertZiplist(o, enc); in hashTypeConvert()
|
| H A D | intset.c | 55 static int64_t _intsetGetEncoded(intset *is, int pos, uint8_t enc) { in _intsetGetEncoded() argument 60 if (enc == INTSET_ENC_INT64) { in _intsetGetEncoded() 64 } else if (enc == INTSET_ENC_INT32) { in _intsetGetEncoded()
|
| H A D | server.h | 1167 void listTypeConvert(robj *subject, int enc); 1357 void setTypeConvert(robj *subject, int enc); 1360 void hashTypeConvert(robj *o, int enc);
|
| H A D | t_set.c | 242 void setTypeConvert(robj *setobj, int enc) { in setTypeConvert() argument 247 if (enc == OBJ_ENCODING_HT) { in setTypeConvert()
|
| H A D | t_list.c | 179 void listTypeConvert(robj *subject, int enc) { in listTypeConvert() argument 183 if (enc == OBJ_ENCODING_QUICKLIST) { in listTypeConvert()
|
| H A D | ziplist.c | 139 #define ZIP_IS_STR(enc) (((enc) & ZIP_STR_MASK) < ZIP_STR_MASK) argument
|
| /redis-3.2.3/tests/support/ |
| H A D | test.tcl | 39 proc assert_encoding {enc key} { 41 assert_match "* encoding:$enc *" $dbg
|