position
Sets the FileStream.position to new.
NOTE: On Js/WasmJs, if using the :kmp-file:async extension module, this synchronous function can fail to acquire the necessary position lock if an asynchronous FileStream operation is holding it. In that event, an IOException is raised. This is a platform limitation and can be avoided by not intermixing synchronous, and asynchronous functionality.
Return
The Read stream for chaining operations.
Parameters
new
The new position for the Read stream.
Throws
IllegalArgumentException
If new is less than 0.
If an I/O error occurs, or the stream is closed.