168

Netty In Action(五-Buffers) | 蓝星的博客

 6 years ago
source link: http://lanxinglan.cn/2017/09/28/Netty-In-Action-%E4%BA%94/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
引言    当我们需要传输数据时,我们经常使用到Buffer。Java NIO实现了自己的Buffer类,但是功能相当有限并且效率低下。而JDK的ByteBuffer又相当笨重复杂。所以Netty实现了自己的ByteBuf来在pipeline中传输数据。 Buffer API    Netty的buffer API包含两个接口: ByteBuf ByteB

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK