ShuaiJunlan / shuaijunlan.github.io

Personal Blog https://blog.shuaijunlan.cn
https://blog.shuaijunlan.cn
0 stars 0 forks source link

Scatter-Gather #87

Open ShuaiJunlan opened 5 years ago

ShuaiJunlan commented 5 years ago

A scattering read is like a regular channel read, except that it reads data into an array of buffers rather than a single buffer. Likewise, a gathering write writes data from an array of buffers rather than a single buffer. Scatter/gather I/O is useful for dividing a data stream into separate sections, which can help implement complicated data formats