fs.writeSync(fd, buffer, offset[, length[, position]])
fd
<integer>buffer
<Buffer> | <TypedArray> | <DataView>offset
<integer> 默认值:0
length
<integer> 默认值:buffer.byteLength - offset
position
<integer> | <null> 默认值:null
- 返回: <number> 写入的字节数。
有关详细信息,请参阅此 API 的异步版本的文档:fs.write(fd, buffer...)
。
fd
<integer>buffer
<Buffer> | <TypedArray> | <DataView>offset
<integer> Default:0
length
<integer> Default:buffer.byteLength - offset
position
<integer> | <null> Default:null
- Returns: <number> The number of bytes written.
For detailed information, see the documentation of the asynchronous version of
this API: fs.write(fd, buffer...)
.