ReadableBuffer.array

Returns the primitive array that backs this buffer if one exists and the buffer is not read-only. The caller should have checked the {@link #hasArray()} method before calling this method.

@return the array that backs this buffer is available.

@throws UnsupportedOperationException if this {@link ReadableBuffer} doesn't support array access. @throws ReadOnlyBufferException if the ReadableBuffer is read-only.

interface ReadableBuffer
byte[]
array
()

Meta