Skip to content

readSync

Read data from the file specified by fd.

buffer

The buffer that the data will be written to.

offset

The offset within the buffer where writing will start.

length

An integer specifying the number of bytes to read.

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.

readSync(this, fd, buffer, options?): number

Defined in: src/node/sync.ts:327

unknown

number

ArrayBufferView

ReadOptions

number

readSync(this, fd, buffer, offset, length, position?): number

Defined in: src/node/sync.ts:328

unknown

number

ArrayBufferView

number

number

ReadPosition | null

number