将 <ArrayBufferView> 的数组写入文件。
buffers<Buffer> | <TypedArray> | <DataView>
position<integer> | <null> The offset from the beginning of the file where the data from
buffersshould be written. If
positionis not a
number, the data will be written at the current position. Default:
- Returns: <Promise>
Write an array of <ArrayBufferView>s to the file.
The promise is resolved with an object containing a two properties:
bytesWritten<integer> the number of bytes written
buffers<Buffer> | <TypedArray> | <DataView> a reference to the
It is unsafe to call
writev() multiple times on the same file without waiting
for the promise to be resolved (or rejected).
On Linux, positional writes don't work when the file is opened in append mode. The kernel ignores the position argument and always appends the data to the end of the file.