public static void encodeMapSym(Encoder encoder, HighSymbol sym) throws IOException {
		encoder.openElement(ELEM_MAPSYM);
		sym.encode(encoder);
		for (SymbolEntry entry : sym.entryList) {
			entry.encode(encoder);
		}
		encoder.closeElement(ELEM_MAPSYM);
	}
Encode the given symbol with all its mapping as a &lt;mapsym&gt; element to the stream.
@param encoder is the stream encoder
@param sym is the given symbol
@throws IOException for errors in the underlying stream
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/HighSymbol.java