Java-NIO(六):Channel聚集(gather)寫入與分散(scatter)讀取

Channel聚集(gather)寫入: 聚集寫入( Gathering Writes)是指將多個 Buffer 中的數據「聚集」到 Channel。 特別注意:按照緩衝區的順序,寫入 position 和 limit 之間的數據到 Channel 。  Channel分散(scatter)讀取: 分散讀取( Scattering Reads)是指從 Channel 中讀取的數據「分散」 到多個 
相關文章
相關標籤/搜索