摘要: ByteBuf是netty传输数据的容器,是对jdk ByteBuffer的增强 1.ByteBuf的创建 //使用ByteBufAllocator创建空参创建默认的容量为256,也可以自己指定大小,创建时指定 默认是直接内存 ByteBuf buffer = ByteBufAllocator.DE 阅读全文
posted @ 2022-05-17 15:06 wangkunlaile 阅读(199) 评论(0) 推荐(0)