readFully
Reads exactly len bytes starting at the 32-bit pos into buf, beginning at offset off.
Parameters
The starting 32-bit address in the data source
The destination byte array
The starting offset in the buffer (must be in [0, buf.size))
The maximum number of bytes to read (must be in 0, buf.size - off)
Throws
If the end of data is reached before reading all bytes
If an I/O error occurs
Reads exactly buf.size bytes starting at the 32-bit pos into the buffer.
Parameters
The starting 32-bit address in the data source
The destination byte array
Throws
If the end of data is reached before reading all bytes
If an I/O error occurs
Reads exactly len bytes starting at the 64-bit pos into buf, beginning at offset off.
Parameters
The starting 64-bit address in the data source
The destination byte array
The starting offset in the buffer (must be in [0, buf.size))
The maximum number of bytes to read (must be in 0, buf.size - off)
Throws
If the end of data is reached before reading all bytes
If an I/O error occurs
Reads exactly buf.size bytes starting at the 64-bit pos into the buffer.
Parameters
The starting 64-bit address in the data source
The destination byte array
Throws
If the end of data is reached before reading all bytes
If an I/O error occurs