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

Commit 94ff867a authored by Martin Geisler's avatar Martin Geisler Committed by Automerger Merge Worker
Browse files

Merge changes Ia692582c,Id28f9dcb am: eba62d42 am: 4d722cfd am: e4fcbdbe

parents 9e070acf e4fcbdbe
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -191,7 +191,9 @@ enum CoffeeAddition: 3 {
>      [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
inherits the parent's fields and the child's fields replace the
@@ -434,6 +436,9 @@ An *array* field defines a sequence of `N` elements of type `T`.
- An [identifier](#identifier) referencing an [enum](#enum), a [struct](#struct)
or a [custom field](#custom-field) type.

The size of `T` must always be a multiple of 8 bits, that is, the array elements
must start at byte boundaries.

```
packet Brew {
   pots: 8[2],