toByteArray

Returns a new ByteArray containing all the elements of this Buffer.