read
open override fun <T> read(buffer: <Error class: unknown class><T>, size: SizeT, bufferSize: SizeT): SizeT
Read into the given native buffer. It will check for errors, but does not indicate end of file.
Parameters
buffer
The buffer to read into
size
The size of individual items (in bytes)
bufferSize
The maximum amount of items to be read.
Read a single byte value. This is not buffered in any way, and possibly slow.
Return
-1 if end of file, otherwise the byte value
Read an array of bytes from the file.
Return
The amount of bytes read or -1 if end of file.
Parameters
buffer
The buffer to read into
offset
The starting point in the buffer to start reading
len
The amount of data to read.