bytes

abstract fun bytes(): ByteArray

A convenience API that constructs a ByteArray constructed from the underlying byteStream.