NIO之scatter 與 gather 操作

scatter :  是指可以將channel 中的數據 讀取 ByteBuffer 數組中。 gather : 是指將ByteBuffer 數組 中的數據寫入到channel 中 代碼: import io.netty.buffer.ByteBuf; import java.io.IOException; import java.net.InetSocketAddress; import ja
相關文章
相關標籤/搜索