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

Commit 587322cc authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Array elements must start at byte boundaries

This makes the specification match the Python implementation.

Test: n/a.
Change-Id: Id28f9dcb70acd8597aefd99f9e0f397c0002b386
parent 076e69e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -434,6 +434,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],