Reports the index of the first occurrence of the specified
ByteString in this instance.
ByteString to seek
position in this instance where str was found;
or startIndex if str is empty;
or -1 if str is not found
The search begins at the position specified by startIndex and continues until the last byte position.
The search is case-sensitive.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | str is null |
| ArgumentOutOfRangeException | startIndex < 0 or startIndex + str.Length > Length |
ByteString Class | Hunny.Base Namespace | ByteString.IndexOf Overload List