Initializes a new packet from data at the given offset, of the given length, and with the given flags.
Exception Type | Condition |
---|---|
ArgumentNullException | data is null. |
ArgumentOutOfRangeException | offset and/or length are out of range. |
InvalidOperationException | The packet is already initialized. |
ENetException | Packet creation failed. |
Packet Class | ENet Namespace | Packet.Initialize Overload List