Hunny Software Library Reference

ByteString.IndexOf Method (Byte)

Reports the index of the first occurrence of the specified byte in this instance.

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

Parameters

by
a byte value to seek

Return Value

position in this instance where by was found;
-1 if by was not found

Remarks

Index numbering starts from zero.

See Also

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