readChunk

abstract fun readChunk(size: Int): ByteArray

Reads the next chunk of the specified size or until it reaches the end of the ByteSequenceStream.

Return

a new list with the read values.