![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
netty学习
diligence-zpf
厚积薄发
展开
-
Netty中的内存分配分析
1.ByteBuf的继承类图1.1 AbstractBytebuf的实现int readerIndex;int writerIndex;private int markedReaderIndex;private int markedWriterIndex;private int maxCapacity;主要实现了index的实现,定义了_getByte和_setByte由其子类实现1.2 ByteBuf分类 可以分为3类Pooled和Unpooled分类区别:pooled 是从已经分原创 2020-07-27 23:49:29 · 674 阅读 · 0 评论 -
简单认识java中的bytebuffer和netty中的bytebuf
一 nio中的bytebuffer的认识1.bytebuffer的数据结构对于ByteBuffer,其主要有五个属性:mark,position,limit,capacity和array。这五个属性的作用如下:mark:记录了当前所标记的索引下标;position:对于写入模式,表示当前可写入数据的下标,对于读取模式,表示接下来可以读取的数据的下标;limit:对于写入模式,表示当前可以...原创 2019-09-18 13:53:10 · 2944 阅读 · 0 评论 -
学习netty时查阅到不错的资料的记录
1.Netty:option和childOption参数设置说明https://www.jianshu.com/p/0bff7c020af2陆续更新中…原创 2019-09-21 22:49:23 · 139 阅读 · 0 评论