readToEnd

abstract suspend fun readToEnd(sizeLimit: UInt): ByteArray

Read until end-of-stream, with size_limit as a maximum.