Extend the structured serialisation and the XML to/from SDObject serialisation to support enums which are not 4-byte's in size.
Before this change enums were assumed to be 4-bytes in size which led to incorrect serialisation from RDC to XML to RDC on chunks which contained non 4-byte enums.
Extended an existing StructuredFile serialisation test to include basic support for 1/2/8 byte enums (the test already covers 4 byte enums).
Added new SDObject -> XML -> SDObject round trip tests directly to xml_codecs.cpp to verify the XML serialisation changes.
Description
Extend the structured serialisation and the XML to/from
SDObject
serialisation to support enums which are not 4-byte's in size.Before this change enums were assumed to be 4-bytes in size which led to incorrect serialisation from
RDC
to XML toRDC
on chunks which contained non 4-byte enums.Extended an existing StructuredFile serialisation test to include basic support for 1/2/8 byte enums (the test already covers 4 byte enums).
Added new
SDObject
->XML
->SDObject
round trip tests directly to xml_codecs.cpp to verify the XML serialisation changes.