ENet Class Library for C#

Packet Methods

The methods of the Packet structure are listed below. For a complete list of Packet structure members, see the Packet Members topic.

Public Instance Methods

Add Adds a byte to the end of the packet.
Clear Sets the packet length to zero.
Contains Checks if the packet contains a particular byte.
CopyToOverloaded. Copies part of the packet data into an array.
Dispose Destroys the ENet packet.
EqualsOverloaded.
GetBytes Gets all bytes of the packet data.
GetEnumerator Returns an enumerator that iterates through the bytes of the packet.
GetHashCode
GetType (inherited from Object)
GetUserDataOverloaded. Gets the user data associated with this packet.
IndexOf Checks if the packet contains a particular byte, and if so, returns the index.
InitializeOverloaded. Initializes a new packet.
Insert Inserts a byte in the packet.
Remove Removes the first byte in the packet with the specified value.
RemoveAt Removes the byte at the specified index from the packet.
Resize Resizes the packet.
SetUserDataOverloaded. Associates user data with this packet.
ToString (inherited from ValueType)

Protected Instance Methods

Finalize (inherited from Object)
MemberwiseClone (inherited from Object)

See Also

Packet Class | ENet Namespace