ByteBuf.indexOf

Locates the first occurrence of the specified {@code value} in this buffer. The search takes place from the specified {@code fromIndex} (inclusive) to the specified {@code toIndex} (exclusive). <p> If {@code fromIndex} is greater than {@code toIndex}, the search is performed in a reversed order. <p> This method does not modify {@code readerIndex} or {@code writerIndex} of this buffer.

@return the absolute index of the first occurrence if found. {@code -1} otherwise.

class ByteBuf
abstract
int
indexOf
(,,
byte value
)

Meta