fs.readv(fd, buffers[, position], callback)

fd 指定的文件中读取并使用 readv() 写入 ArrayBufferView 数组。

position 是从文件开头应该读取数据的偏移量。 如果 typeof position !== 'number',则从当前位置读取数据。

回调将被赋予三个参数:errbytesReadbuffersbytesRead 是从文件中读取的字节数。

如果此方法作为其 util.promisify() 版本被调用,则其将为具有 bytesReadbuffers 属性的 Object 返回 Promise

Read from a file specified by fd and write to an array of ArrayBufferViews using readv().

position is the offset from the beginning of the file from where data should be read. If typeof position !== 'number', the data will be read from the current position.

The callback will be given three arguments: err, bytesRead, and buffers. bytesRead is how many bytes were read from the file.

If this method is invoked as its util.promisify()ed version, it returns a Promise for an Object with bytesRead and buffers properties.