readRemaining

suspend fun ByteSource.readRemaining(limit: Int? = null): ByteArray(source)

Read all remaining bytes out of the receiving ByteSource.

Parameters

limit

If set and the byte source is larger than it, throws an IOException.