readAll

fun readAll(count: ULong, cancellable: Cancellable? = null, onException: (Exception) -> Unit? = null): Array<Byte>

See also

Parameters

onException

if set, will provide exception that way, and returns an array of bytes that were collected before the exception occured

Throws

if onException is not stated.