Locates the first occurrence of the specified {@code value} in thisbuffer. The search takes place from the specified {@code fromIndex}(inclusive) to the specified {@code toIndex} (exclusive).
If {@code fromIndex} is greater than {@code toIndex}, the search is performed in a reversed order.
@return the absolute index of the first occurrence if found.{@code -1} otherwise.