Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98b05329 authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Specify that packets must be byte aligned

This also applies to structs, which already say that they inherit the
rules from packets.

Test: n/a.
Change-Id: Ia692582c3337336f114302caad1ed7728e7d8e4b
parent 587322cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,9 @@ enum CoffeeAddition: 3 {
>      [field_list](#fields)?\
>      [field_list](#fields)?\
>    `}`
>    `}`


A *packet* is a declaration of a sequence of [fields](#fields).
A *packet* is a declaration of a sequence of [fields](#fields). While packets
can contain bit-fields, the size of the whole packet must be a multiple of 8
bits.


A *packet* can optionally inherit from another *packet* declaration. In this case the packet
A *packet* can optionally inherit from another *packet* declaration. In this case the packet
inherits the parent's fields and the child's fields replace the
inherits the parent's fields and the child's fields replace the