indexOf

abstract fun indexOf(data: ByteBuf): Int

Returns the index of the last occurrence of the specified data in the cache, or -1 if the cache does not contain the element.