The methods of the Packet structure are listed below. For a complete list of Packet structure members, see the Packet Members topic.
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. |
CopyTo | Overloaded. Copies part of the packet data into an array. |
Dispose | Destroys the ENet packet. |
Equals | Overloaded. |
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) | |
GetUserData | Overloaded. Gets the user data associated with this packet. |
IndexOf | Checks if the packet contains a particular byte, and if so, returns the index. |
Initialize | Overloaded. 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. |
SetUserData | Overloaded. Associates user data with this packet. |
ToString (inherited from ValueType) |
Finalize (inherited from Object) | |
MemberwiseClone (inherited from Object) |