Copies part of the packet data into an array.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex, count, and/or sourceIndex are out of range. |
| InvalidOperationException | The packet is not initialized. |
Packet Class | ENet Namespace | Packet.CopyTo Overload List