ENet Class Library for C#

Packet.CopyTo(Byte, Int32) Method

Copies part of the packet data into an array.

[Visual Basic]
Public NotOverridable Overloads Sub CopyTo( _
   ByVal array As Byte, _
   ByVal arrayIndex As Integer _
) _
    Implements ICollection<byte>.CopyTo
[C#]
public void CopyTo(
   byte[] array,
   int arrayIndex
);

Parameters

array
The array to copy into.
arrayIndex
The target array index at which to begin copying.

Implements

ICollection<byte>.CopyTo

Exceptions

Exception Type Condition
ArgumentNullException array is null.
ArgumentOutOfRangeException arrayIndex is out of range.
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace | Packet.CopyTo Overload List