GP-2237 AddrSpace as marshaling primitive and prettyprint update

This commit is contained in:
caheckman 2022-06-23 20:16:51 -04:00
parent 4807ec354a
commit 6be9943b8a
58 changed files with 1333 additions and 1098 deletions

View file

@ -119,15 +119,14 @@ void StringManager::encode(Encoder &encoder) const
/// Parse a \<stringmanage> element, with \<string> children.
/// \param decoder is the stream decoder
/// \param m is the manager for looking up AddressSpaces
void StringManager::decode(Decoder &decoder, const AddrSpaceManager *m)
void StringManager::decode(Decoder &decoder)
{
uint4 elemId = decoder.openElement(ELEM_STRINGMANAGE);
for (;;) {
uint4 subId = decoder.openElement();
if (subId != ELEM_STRING) break;
Address addr = Address::decode(decoder, m);
Address addr = Address::decode(decoder);
StringData &stringData(stringMap[addr]);
uint4 subId2 = decoder.openElement(ELEM_BYTES);
stringData.isTruncated = decoder.readBool(ATTRIB_TRUNC);