Initializes a new packet.
Exception Type | Condition |
---|---|
ArgumentNullException | data is null. |
InvalidOperationException | The packet is already initialized. |
ENetException | Packet creation failed. |
Packet Class | ENet Namespace | Packet.Initialize Overload List