首页 新闻 会员 周边
1
回答数

回答被采纳 redis源码中获取SDS可用空间长度

/* * 返回 sds 可用空间的长度 * * T = O(1) */ static inline size_t sdsavail(const sds s) { struct sdshdr *sh =