Copies the remaining bytes of the buffer into the given array, starting from offset zero.
Copies the remaining bytes of the buffer into the given array, starting from offset zero. The array must have capacity to store all of the remaining bytes of the buffer. The buffer's position remains untouched.
Converts a byte buffer into an array.
Converts a byte buffer into an array. The buffer's position remains untouched.