read
Reads a single byte from the section.
Return
The byte read, as an integer in the range 0 to 255, or -1 if the end of the section has been reached.
Reads up to len bytes of data from the section into an array of bytes.
Return
The total number of bytes read into the buffer, or -1 if there is no more data because the end of the section has been reached.
Parameters
b
The buffer into which the data is read.
off
The start offset in array b at which the data is written.
len
The maximum number of bytes to read.