- readSync(fd, buffer, options?): number
Parameters
- fd: number
- buffer: ArrayBufferView
Optional
options: ReadSyncOptions
Returns number
- readSync(fd, buffer, offset, length, position?): number
Parameters
- fd: number
- buffer: ArrayBufferView
- offset: number
- length: number
Optional
position: null | ReadPosition
Returns number
Read data from the file specified by
fd
.Param: buffer
The buffer that the data will be written to.
Param: offset
The offset within the buffer where writing will start.
Param: length
An integer specifying the number of bytes to read.
Param: position
An integer specifying where to begin reading from in the file. If position is null, data will be read from the current file position.