PacketDiagram Class
A packet diagram: the fields of a network packet or of a register, drawn over their bits, in rows of PacketDiagram.BitsPerRow bits (Mermaid packet).
public sealed class PacketDiagram : Diagram- Inheritance
DiagramPacketDiagram
Constructors
| Name | Description |
|---|---|
| PacketDiagram() |
PacketDiagram()
PacketDiagram.cspublic PacketDiagram()No documentation is available.
Properties
| Name | Description |
|---|---|
| BitWidth | Gets or sets the width of a bit, in pixels. The default is 32. |
| BitsPerRow | Gets or sets the number of bits of a row. The default is 32. |
| DescendingBitOrder | Gets or sets a value that indicates whether each row is drawn from its highest bit on the left to its lowest on the right, as hardware registers are; otherwise, from its lowest bit, as network packets are (Mermaid bitOrder). |
| Fields | Gets the fields, in the order of their bits. A field starts after the previous one. |
| RowHeight | Gets or sets the height of a row, in pixels. The default is 32. |
| ShowBits | Gets or sets a value that indicates whether the numbers of the first and the last bits of the fields are drawn. The default is true. |
BitWidth
PacketDiagram.csBitsPerRow
PacketDiagram.csDescendingBitOrder
PacketDiagram.csFields
PacketDiagram.csGets the fields, in the order of their bits. A field starts after the previous one.
public IList<PacketField> Fields { get; }Property value
RowHeight
PacketDiagram.csShowBits
PacketDiagram.csMethods
| Name | Description |
|---|---|
| AddField(int, DiagramText) | Adds a field after the last one. |
AddField(int, DiagramText)
PacketDiagram.csAdds a field after the last one.
public PacketField AddField(int bits, DiagramText label)Parameters
bitsint- The number of bits.
labelDiagramText- The name of the field.
Returns
PacketField The field.