Determines if the content of the specified buffer is identical to the
content of this array. 'Identical' here means:
<ul>
<li>the size of the contents of the two buffers are same and</li>
<li>every single byte of the content of the two buffers are same.</li>
</ul>
Please note that it does not compare {@link #readerIndex()} nor
{@link #writerIndex()}. This method also returns {@code false} for
{@code null} and an object which is not an instance of
{@link ByteBuf} type.
Determines if the content of the specified buffer is identical to the content of this array. 'Identical' here means: <ul> <li>the size of the contents of the two buffers are same and</li> <li>every single byte of the content of the two buffers are same.</li> </ul> Please note that it does not compare {@link #readerIndex()} nor {@link #writerIndex()}. This method also returns {@code false} for {@code null} and an object which is not an instance of {@link ByteBuf} type.