beginIndex and finishing at endIndex. If no such byte occurs in this buffer within the specified bounds, -1 is returned. There is no restriction on the value of beginIndex and endIndex. If beginIndex is negative, it has the same effect as if it were zero. If endIndex is greater than {@link #length()}, it has the same effect as if it were {@link #length()}. If the beginIndex is greater than the endIndex, -1 is returned.
@param b the byte to search for.
@param beginIndex the index to start the search from.
@param endIndex the index to finish the search at.
@return the index of the first occurrence of the byte in the bufferwithin the given bounds, or -1 if the byte does not occur.
@since 4.1
| |
| |
| |
| |
| |
| |