A class that exposes a simple in-memory representation of a document of
MsgPack objects, that can be read from and written to MsgPack, read from
and written to YAML, and inspected and modified in memory. This is
intended to be a lighter-weight (in terms of memory allocations)
replacement for MsgPackTypes.
Two subsequent changes will:
- switch AMDGPU HSA metadata to using MsgPackDocument instead of MsgPackTypes;
- add MsgPack AMDGPU PAL metadata via MsgPackDocument.
Change-Id: Ie15a054831d5a6467c5867c064c8f8f6b80270e1
Excuse the delayed review - found this while investigating other issues. I believe this code is invalid & is an aliasing violation (taking a pointer to ArrayDocNode (similarly with MapDocNode) when it's not pointing to an object of that type).
Can you please fix this code to not do that?