Reads this whole buffer and returns it as a new ByteArray.
if this buffer is larger than what a ByteArray can hold.