ENet Class Library for C#

Packet.GetBytes Method

Gets all bytes of the packet data.

[Visual Basic]
Public Sub GetBytes()
[C#]
public byte[] GetBytes();

Return Value

The packet data.

Exceptions

Exception Type Condition
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace