Skip to content

read

read(this, fd, cb): void

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

Read data from the file specified by fd.

unknown

number

Callback<[number, NonSharedBuffer]>

The number is the number of bytes read

void

read<T>(this, fd, options, cb): void

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

Read data from the file specified by fd.

T extends ArrayBufferView<ArrayBufferLike> = NonSharedBuffer

unknown

number

ReadOptionsWithBuffer<T>

Callback<[number, T]>

The number is the number of bytes read

void

read<T>(this, fd, buffer, options, cb): void

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

Read data from the file specified by fd.

T extends ArrayBufferView<ArrayBufferLike>

unknown

number

T

The buffer that the data will be written to.

ReadOptions

Callback<[number, T]>

The number is the number of bytes read

void

read<T>(this, fd, buffer, cb): void

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

Read data from the file specified by fd.

T extends ArrayBufferView<ArrayBufferLike>

unknown

number

T

The buffer that the data will be written to.

Callback<[number, T]>

The number is the number of bytes read

void

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

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

Read data from the file specified by fd.

unknown

number

ArrayBufferView

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.

ReadPosition | null

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, ArrayBufferView<ArrayBufferLike>]>

The number is the number of bytes read

void