filehandle.readv(buffers[, position])
buffers
<Buffer[]> | <TypedArray[]> | <DataView[]>position
<integer> | <null> 要从中读取数据的文件的开头偏移量。 如果position
不是number
,则将从当前位置读取数据。 默认值:null
- 返回: <Promise> 成功时将使用包含以下两个属性的对象履行:
bytesRead
<integer> 读取的字节数buffers
<Buffer[]> | <TypedArray[]> | <DataView[]> 该属性包含对buffers
输入的引用。
从文件读取并写入 <ArrayBufferView> 的数组
buffers
<Buffer[]> | <TypedArray[]> | <DataView[]>position
<integer> | <null> The offset from the beginning of the file where the data should be read from. Ifposition
is not anumber
, the data will be read from the current position. Default:null
- Returns: <Promise> Fulfills upon success an object containing two properties:
bytesRead
<integer> the number of bytes readbuffers
<Buffer[]> | <TypedArray[]> | <DataView[]> property containing a reference to thebuffers
input.
Read from a file and write to an array of <ArrayBufferView>s