readByteArray

common
abstract fun readByteArray(): ByteArray

Removes all bytes from this and returns them as a byte array.

abstract fun readByteArray(): ByteArray
abstract fun readByteArray(byteCount: Long): ByteArray
common
abstract fun readByteArray(byteCount: Long): ByteArray

Removes byteCount bytes from this and returns them as a byte array.