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