A file descriptor.
Optional
buffer: TBufferOptional
offset: numberThe part of the buffer to be written. If not supplied, defaults to 0
.
Optional
length: numberThe number of bytes to write. If not supplied, defaults to buffer.length - offset
.
Optional
position: numberThe offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
Asynchronously writes buffer
to the file referenced by the supplied file descriptor.
A file descriptor.
Optional
buffer: TBufferOptional
options: WriteOptionsAn object with the following properties:
offset
The part of the buffer to be written. If not supplied, defaults to 0
.length
The number of bytes to write. If not supplied, defaults to buffer.length - offset
.position
The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.Asynchronously writes string
to the file referenced by the supplied file descriptor.
A file descriptor.
A string to write.
Optional
position: numberThe offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
Optional
encoding: BufferEncodingThe expected string encoding.
Asynchronously writes
buffer
to the file referenced by the supplied file descriptor.