readBytes

fun readBytes(buffer: ByteBuffer, len: Int)

Reads exactly len bytes into the given buffer. The buffer must have enough remaining limit.

If there are fewer than len bytes in the input, EOFException is thrown.


open override fun readBytes(arr: ByteArray, off: Int, len: Int)

Reads a specified number of bytes into an array at the specified offset.

Parameters

b

the array to read bytes into

offset

the offset in the array to start storing bytes

len

the number of bytes to read

See also


open override fun readBytes(pos: Long, bytes: ByteArray, offset: Int, len: Int)

Reads a specified number of bytes starting at a given position into an array at the specified offset.

See also