Redis的底层数据结构
SDS
定义
从代码中找出原定义
struct __attribute__ ((__packed__)) sdshdr16 {
uint16_t len; /* used */
uint16_t alloc; /* excluding the header and null terminator */
unsigned char flags; /* 3 lsb of type, 5 unused bits */
char buf[];
};
typedef char *sds
原创
2022-03-28 15:58:19 ·
796 阅读 ·
0 评论