Skip to content

read

read(this, fd, buffer, offset, length, position?, cb?): void

Defined in: src/node/async.ts:379

Read data from the file specified by fd.

unknown

number

Uint8Array

The buffer that the data will be written to.

number

The offset within the buffer where writing will start.

number

An integer specifying the number of bytes to read.

number

An integer specifying where to begin reading from in the file. If position is null, data will be read from the current file position.

Callback<[number, Uint8Array<ArrayBufferLike>]> = nop

The number is the number of bytes read

void