fs.readSync(fd, buffer, offset, length, position)
fd
<integer>buffer
<Buffer> | <TypedArray> | <DataView>offset
<integer>length
<integer>position
<integer> | <bigint>- 返回: <number>
返回 bytesRead
的数量。
有关详细信息,请参阅此 API 的异步版本的文档:fs.read()
。
fd
<integer>buffer
<Buffer> | <TypedArray> | <DataView>offset
<integer>length
<integer>position
<integer> | <bigint>- Returns: <number>
Returns the number of bytesRead
.
For detailed information, see the documentation of the asynchronous version of
this API: fs.read()
.