Initializes a new packet, with the given flags.
| 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