The buffer that the data will be written to.
The position in buffer
to write the data to.
The number of bytes to read.
Specifies where to begin reading from in the file. If position
is null
or -1
, data will be read from the current file position, and the file position will be updated. If
position
is an integer, the file position will be unchanged.
Read data from the file specified by fd
.
The callback is given the three arguments, (err, bytesRead, buffer)
.
If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its util.promisify()
ed version, it returns
a promise for an Object
with bytesRead
and buffer
properties.
Read data from the file specified by fd
.
The callback is given the three arguments, (err, bytesRead, buffer)
.
If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its util.promisify()
ed version, it returns
a promise for an Object
with bytesRead
and buffer
properties.
Read data from the file specified by fd
.
The callback is given the three arguments, (err, bytesRead, buffer)
.
If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its util.promisify()
ed version, it returns
a promise for an Object
with bytesRead
and buffer
properties.
The buffer that the data will be written to.
The position in buffer
to write the data to.
The number of bytes to read.
Specifies where to begin reading from in the file. If position
is null
or -1
, data will be read from the current file position, and the file position will be updated. If
position
is an integer, the file position will be unchanged.
Read data from the file specified by fd
.
The callback is given the three arguments, (err, bytesRead, buffer)
.
If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its util.promisify()
ed version, it returns
a promise for an Object
with bytesRead
and buffer
properties.
Read data from the file specified by fd
.
The callback is given the three arguments, (err, bytesRead, buffer)
.
If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its util.promisify()
ed version, it returns
a promise for an Object
with bytesRead
and buffer
properties.
A file descriptor.
The buffer that the data will be written to.
The offset in the buffer at which to start writing.
The number of bytes to read.
The offset from the beginning of the file from which data should be read. If null
, data will be read from the current position.
Generated using TypeDoc
Read data from the file specified by
fd
.The callback is given the three arguments,
(err, bytesRead, buffer)
.If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero.
If this method is invoked as its
util.promisify()
ed version, it returns a promise for anObject
withbytesRead
andbuffer
properties.