filehandle.readv(buffers[, position])
buffers<Buffer[]> | <TypedArray[]> | <DataView[]>position<integer> 要从中读取数据的文件的开头偏移量。 如果position不是number,则将从当前位置读取数据。- 返回: <Promise> 成功时将使用包含以下两个属性的对象履行:
bytesRead<integer> 读取的字节数buffers<Buffer[]> | <TypedArray[]> | <DataView[]> 该属性包含对buffers输入的引用。
从文件读取并写入 <ArrayBufferView> 的数组
buffers<Buffer[]> | <TypedArray[]> | <DataView[]>position<integer> The offset from the beginning of the file where the data should be read from. Ifpositionis not anumber, the data will be read from the current position.- 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 thebuffersinput.
Read from a file and write to an array of <ArrayBufferView>s