vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

api: serdes: allow union (de)serialization #120

Closed VDanielEdwards closed 1 month ago

VDanielEdwards commented 2 months ago

Subject

This change allows to (de-)serialize unions using the public serdes headers. It does not change the API of the Serializer / Deserializer classes, but only implements the existing member functions.

The index is 1-based, since a related piece of software already uses 1-based indices for union discriminators.

Instructions for review / testing

Developer checklist (address before review)