Hunny Software Library Reference

ByteString.IndexOfAny Method (Byte[])

Reports the index of the first occurrence of any byte in a specified set of bytes.

[Visual Basic]
Overloads Public Function IndexOfAny( _
   ByVal anyOf As Byte() _
) As Integer
[C#]
public int IndexOfAny(
   byte[] anyOf
);

Parameters

anyOf
byte array containing the set of bytes to seek

Return Value

smallest index where any byte in anyOf was found;
-1 if no byte in anyOf was found

Exceptions

Exception TypeCondition
ArgumentNullExceptionanyOf is null

See Also

ByteString Class | Hunny.Base Namespace | ByteString.IndexOfAny Overload List