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
Checks whether the arguments to a read operation are valid. This method is intended for internal use in implementing readAtMost or readFully.
If pos is negative, or off/len are invalid for buf