Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCrotaz committed Oct 18, 2024
1 parent b602f67 commit 9357761
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/syntax/packet.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This diagram type is particularly useful for developers, network engineers, educ
packet-beta
start: "Block name" %% Single-bit block
start-end: "Block name" %% Multi-bit blocks
16bits: "Block name" %% Auto appends to previous block without specifying start
... More Fields ...
```

Expand Down Expand Up @@ -82,6 +83,16 @@ title UDP Packet
48-63: "Checksum"
64-95: "Data (variable length)"
```
Or you can write this as
```mermaid-example
packet-beta
title UDP Packet
16bits: "Source Port"
16bits: "Destination Port"
16bits: "Length"
16bits: "Checksum"
64-95: "Data (variable length)"
```

```mermaid
packet-beta
Expand Down

0 comments on commit 9357761

Please sign in to comment.