ComponentSpace ICMP Class Library Reference

IpHeader.GetHeaderLengthInBytes Method 

Initializes a new instance of the IpHeader class from the byte array.

[Visual Basic]
Public Shared Function GetHeaderLengthInBytes( _
   ByVal bytes As Byte(), _
   ByVal index As Integer, _
   ByVal count As Integer _
) As UInt16
[C#]
public static ushort GetHeaderLengthInBytes(
   byte[] bytes,
   int index,
   int count
);

Parameters

bytes
The byte array containing the header.
index
The index into the byte array.
count
The number of bytes available in the byte array.

See Also

IpHeader Class | ComponentSpace.Icmp Namespace