ENet Class Library for C#

Packet.IndexOf Method

Checks if the packet contains a particular byte, and if so, returns the index.

[Visual Basic]
Public NotOverridable Sub IndexOf( _
   ByVal value As Byte _
) _
    Implements IList<byte>.IndexOf
[C#]
public int IndexOf(
   byte value
);

Parameters

value
The value to look for.

Return Value

The index of the byte, or -1.

Implements

IList<byte>.IndexOf

Exceptions

Exception Type Condition
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace