@Override
	public void writeStringIndexed(AttributeId attribId, int index, String val) throws IOException {
		byte[] bytes = val.getBytes();
		writeHeader(ATTRIBUTE, attribId.id() + index);
		writeInteger((TYPECODE_STRING << TYPECODE_SHIFT), bytes.length);
		outStream.write(bytes);
	}
A byte-based encoder designed to marshal to the decompiler efficiently
See {@code PackedDecode} for details of the encoding format
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PackedEncode.java