Re: Dict parsing question

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]> Mon, 18 Dec 2023 20:05:58 +1300
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Fri, 15 Dec 2023 15:55:38 +0000, Simon McVittie wrote:

> The array is *4*-byte aligned, the same as any other array (because it
> starts with a 4-byte length). After the length, the dict entries
> inside it are 8-byte aligned, the same as structs.

I had to look at that twice, three times before I could be sure I
understood it right. Is that really the case, that elements of a dict
structure have a _greater_ alignment requirement than the structure
itself? How is that supposed to work, exactly?