read
Call Signature
Section titled “Call Signature”read(
this,fd,cb):void
Defined in: src/node/async.ts:390
Read data from the file specified by fd.
Parameters
Section titled “Parameters”unknown
number
Callback<[number, NonSharedBuffer]>
The number is the number of bytes read
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”read<
T>(this,fd,options,cb):void
Defined in: src/node/async.ts:391
Read data from the file specified by fd.
Type Parameters
Section titled “Type Parameters”T extends ArrayBufferView<ArrayBufferLike> = NonSharedBuffer
Parameters
Section titled “Parameters”unknown
number
options
Section titled “options”ReadOptionsWithBuffer<T>
Callback<[number, T]>
The number is the number of bytes read
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”read<
T>(this,fd,buffer,options,cb):void
Defined in: src/node/async.ts:397
Read data from the file specified by fd.
Type Parameters
Section titled “Type Parameters”T extends ArrayBufferView<ArrayBufferLike>
Parameters
Section titled “Parameters”unknown
number
buffer
Section titled “buffer”T
The buffer that the data will be written to.
options
Section titled “options”ReadOptions
Callback<[number, T]>
The number is the number of bytes read
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”read<
T>(this,fd,buffer,cb):void
Defined in: src/node/async.ts:404
Read data from the file specified by fd.
Type Parameters
Section titled “Type Parameters”T extends ArrayBufferView<ArrayBufferLike>
Parameters
Section titled “Parameters”unknown
number
buffer
Section titled “buffer”T
The buffer that the data will be written to.
Callback<[number, T]>
The number is the number of bytes read
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”read(
this,fd,buffer,offset,length,position?,cb?):void
Defined in: src/node/async.ts:405
Read data from the file specified by fd.
Parameters
Section titled “Parameters”unknown
number
buffer
Section titled “buffer”ArrayBufferView
The buffer that the data will be written to.
offset
Section titled “offset”number
The offset within the buffer where writing will start.
length
Section titled “length”number
An integer specifying the number of bytes to read.
position?
Section titled “position?”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
Returns
Section titled “Returns”void