Lines Matching refs:type

81 int rdbSaveType(rio *rdb, unsigned char type) {  in rdbSaveType()  argument
82 return rdbWriteRaw(rdb,&type,1); in rdbSaveType()
89 unsigned char type; in rdbLoadType() local
90 if (rioRead(rdb,&type,1) == 0) return -1; in rdbLoadType()
91 return type; in rdbLoadType()
146 int type; in rdbLoadLen() local
150 type = (buf[0]&0xC0)>>6; in rdbLoadLen()
151 if (type == RDB_ENCVAL) { in rdbLoadLen()
155 } else if (type == RDB_6BITLEN) { in rdbLoadLen()
158 } else if (type == RDB_14BITLEN) { in rdbLoadLen()
162 } else if (type == RDB_32BITLEN) { in rdbLoadLen()
168 "Unknown length encoding %d in rdbLoadLen()",type); in rdbLoadLen()
526 switch (o->type) { in rdbSaveObjectType()
564 int type; in rdbLoadObjectType() local
565 if ((type = rdbLoadType(rdb)) == -1) return -1; in rdbLoadObjectType()
566 if (!rdbIsObjectType(type)) return -1; in rdbLoadObjectType()
567 return type; in rdbLoadObjectType()
574 if (o->type == OBJ_STRING) { in rdbSaveObject()
578 } else if (o->type == OBJ_LIST) { in rdbSaveObject()
601 } else if (o->type == OBJ_SET) { in rdbSaveObject()
625 } else if (o->type == OBJ_ZSET) { in rdbSaveObject()
653 } else if (o->type == OBJ_HASH) { in rdbSaveObject()
1185 o->type = OBJ_HASH; in rdbLoadObject()
1196 o->type = OBJ_LIST; in rdbLoadObject()
1201 o->type = OBJ_SET; in rdbLoadObject()
1207 o->type = OBJ_ZSET; in rdbLoadObject()
1213 o->type = OBJ_HASH; in rdbLoadObject()
1277 int type, rdbver; in rdbLoad() local
1311 if ((type = rdbLoadType(&rdb)) == -1) goto eoferr; in rdbLoad()
1314 if (type == RDB_OPCODE_EXPIRETIME) { in rdbLoad()
1320 if ((type = rdbLoadType(&rdb)) == -1) goto eoferr; in rdbLoad()
1324 } else if (type == RDB_OPCODE_EXPIRETIME_MS) { in rdbLoad()
1329 if ((type = rdbLoadType(&rdb)) == -1) goto eoferr; in rdbLoad()
1330 } else if (type == RDB_OPCODE_EOF) { in rdbLoad()
1333 } else if (type == RDB_OPCODE_SELECTDB) { in rdbLoad()
1346 } else if (type == RDB_OPCODE_RESIZEDB) { in rdbLoad()
1357 } else if (type == RDB_OPCODE_AUX) { in rdbLoad()
1389 if ((val = rdbLoadObject(type,&rdb)) == NULL) goto eoferr; in rdbLoad()