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


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

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

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

¥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.

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

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

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

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