Companion
object Companion
Functions
Link copied to clipboard
Plays bytes already in memory. Each open has its own cursor and close state, with no array copy. Keep bytes unchanged while any reader is open. Size is known and positions from zero through the array size are seekable. Invalid slices or positions throw IllegalArgumentException; reads and seeks after close throw IllegalStateException. A zero-length read returns zero, even at EOF.