基础 ByteBuffer 和 ByteBuf 缓冲区 ByteBuffer buffer = ByteBuffer.allocate(1024); ByteBuf https://www.jianshu.com/p/3fbf54b8e8ec