readBytes

open override fun readBytes(sectionOffset: Long, buf: ByteArray, bufOffset: Int, size: Int)(source)

Reads bytes from the section.

Parameters

sectionOffset

the offset within the section to read from

buf

the buffer to read into

bufOffset

the offset within the buffer to read into

size

the number of bytes to read

Throws

if buffer offset or size is out of bounds

if size or section offset is negative

if reading from the file fails