contentEquals

infix fun ByteBuffer?.contentEquals(other: ByteArray?): Boolean
infix fun ShortBuffer?.contentEquals(other: ShortArray?): Boolean
infix fun IntBuffer?.contentEquals(other: IntArray?): Boolean
infix fun LongBuffer?.contentEquals(other: LongArray?): Boolean
infix fun FloatBuffer?.contentEquals(other: FloatArray?): Boolean
infix fun DoubleBuffer?.contentEquals(other: DoubleArray?): Boolean
infix fun CharBuffer?.contentEquals(other: CharArray?): Boolean

Returns true if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order. The elements are compared for equality with the equals function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.