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.
Parameters
Section titled “Parameters”unknown
number
buffer
Section titled “buffer”Uint8Array
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?”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
Returns
Section titled “Returns”void