function readSync
Jump to headingreadSync(): numberReturns the number of bytesRead.
For detailed information, see the documentation of the asynchronous version of this API: read.
Parameters Jump to heading
Jump to headingfd: numberJump to headingbuffer: ArrayBufferViewJump to headingoffset: numberJump to headinglength: numberoptional
Jump to headingposition: ReadPosition | null = 'null'Return Type Jump to heading
numberJump to headingreadSync(): numberSimilar to the above fs.readSync function, this version takes an optional options object.
If no options object is specified, it will default with the above values.
Parameters Jump to heading
Jump to headingfd: numberJump to headingbuffer: ArrayBufferViewoptional
Jump to headingopts: ReadSyncOptionsReturn Type Jump to heading
number