ENet Class Library for C#

Packet.Initialize(Byte) Method

Initializes a new packet.

[Visual Basic]
Public Overloads Sub Initialize( _
   ByVal data As Byte _
)
[C#]
public void Initialize(
   byte[] data
);

Parameters

data
The data the packet will contain.

Exceptions

Exception Type Condition
ArgumentNullException data is null.
InvalidOperationException The packet is already initialized.
ENetException Packet creation failed.

See Also

Packet Class | ENet Namespace | Packet.Initialize Overload List