Companion

Checks whether the arguments to a read operation are valid. This method is intended for internal use in implementing readAtMost or readFully.

Throws

If pos is negative, or off/len are invalid for buf

Functions

Link copied to clipboard
fun checkReadBounds(pos: Long, buf: ByteArray, off: Int, len: Int)