源码
arkblue
充满劳绩,但人还诗意地栖居在,大地之上
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java源码Object
1 getClass()方法 ,由注释可知返回的是运行是实际的类型,不是声明的类型。 // The Class object that represents the runtime class of this object. public final native Class getClass(); 2 /** * Returns a hash cod原创 2012-07-16 19:05:41 · 1895 阅读 · 0 评论 -
redis --持久化rio
rio是对流式IO的抽象,提供读写接口,消费/生产具体不同的I/O设备。rdb.c就是使用抽象封装RDB的内存读写和文件读写。rio对象提供以下方法: read:从流读数据 write:向流写数据 tell :获取当前的偏移量 checksum:检查读写的checksum /* rio.c is a simple strea原创 2017-08-20 16:44:30 · 1162 阅读 · 0 评论 -
redis源码 -ziplist
注释的翻译: /* The ziplist is a specially encoded dually linked list that is designed * to be very memory efficient. It stores both strings and integer values, * where integers are encoded as actual int原创 2017-09-04 19:59:52 · 1019 阅读 · 0 评论
分享