ENet Class Library for C#

Packet.Length Property

Gets the length of the packet.

[Visual Basic]
Public ReadOnly Property Length() As Integer
   Public Get
   End Get
End Property
[C#]
public int Length { public get; }

Exceptions

Exception Type Condition
InvalidOperationException The packet is not initialized, or is 2GB or larger.

See Also

Packet Class | ENet Namespace