readAllBytes

fun RawSource.readAllBytes(): ByteArray

Drain a RawSource fully into a ByteArray.