@Override
	public void writeBool(AttributeId attribId, boolean val) throws IOException {
		writeHeader(ATTRIBUTE, attribId.id());
		int typeByte = val ? 0x11 : 0x10;
		outStream.write(typeByte);
	}
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