writeSync
Call Signature
Section titled “Call Signature”writeSync(
this,fd,data,offset?,length?,position?):number
Defined in: src/node/sync.ts:286
Write buffer to the file specified by fd.
Parameters
Section titled “Parameters”unknown
number
ArrayBufferView
Uint8Array containing the data to write to the file.
offset?
Section titled “offset?”number | null
Offset in the buffer to start reading data from.
length?
Section titled “length?”number | null
The amount of bytes to write to the file.
position?
Section titled “position?”number | null
Offset from the beginning of the file where this data should be written. If position is null, the data will be written at the current position.
Returns
Section titled “Returns”number
Call Signature
Section titled “Call Signature”writeSync(
this,fd,data,position?,encoding?):number
Defined in: src/node/sync.ts:294
Write buffer to the file specified by fd.
Parameters
Section titled “Parameters”unknown
number
string
Uint8Array containing the data to write to the file.
position?
Section titled “position?”number | null
Offset from the beginning of the file where this data should be written. If position is null, the data will be written at the current position.
encoding?
Section titled “encoding?”BufferEncoding | null
Returns
Section titled “Returns”number