toArray

Return

Returns the remaining bytes from the buffer copied to an array.

Parameters

buffer

The buffer to read from.