readAll

abstract suspend fun readAll(): UByteArray

Returns all data in one byte array and closes itself.

Throws