readSync
external fun readSync(fd: Number, buffer: ArrayBufferView<*>, offset: Number, length: Number, position: ReadPosition?): Double(source)
Returns the number of bytesRead
.
For detailed information, see the documentation of the asynchronous version of this API: {@link read}.
Since
v0.1.21
Parameters
position='null'
external fun readSync(fd: Number, buffer: ArrayBufferView<*>, opts: ReadSyncOptions = definedExternally): Double(source)
Similar 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.