readBytesOrThrow

Reads this whole buffer and returns it as a new ByteArray.

Throws

if this buffer is larger than what a ByteArray can hold.