Dict parsing question

Thomas Kluyver thomas at kluyver.me.uk
Tue Dec 19 15:21:01 UTC 2023


On Mon, 18 Dec 2023, at 07:05, Lawrence D'Oliveiro wrote:
> 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?

That's certainly how I'd read the spec. I don't think there's any great difficulty there? We have a uint32 length aligned on a multiple of 4 bytes, so you either need 0 or 4 bytes of padding between that and the first entry.

Thomas


More information about the dbus mailing list