Initializes a new packet from data, at the given offset, and of the given length.
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