PacketField Class

A field of a packet diagram: a name over a range of bits.

public sealed class PacketField

Constructors

NameDescription
PacketField(int, int, DiagramText)Initializes a new instance of the PacketField class.

PacketField(int, int, DiagramText)

PacketField.cs

Initializes a new instance of the PacketField class.

public PacketField(int start, int end, DiagramText label)

Parameters

start int
The first bit.
end int
The last bit, included.
label DiagramText
The name of the field.

Properties

NameDescription
BitsGets the number of bits.
EndGets the last bit, included.
LabelGets or sets the name of the field.
StartGets the first bit.

Gets the number of bits.

public int Bits { get; }

Property value

int

Gets the last bit, included.

public int End { get; }

Property value

int

Gets or sets the name of the field.

public DiagramText Label { get; set; }

Property value

DiagramText

Gets the first bit.

public int Start { get; }

Property value

int