@Override
	public boolean readBool() throws DecoderException {
		byte header1 = curPos.getNextByte();
		if ((header1 & HEADEREXTEND_MASK) != 0) {
			curPos.getNextByte();
		}
		byte typeByte = curPos.getNextByte();
		if ((typeByte >> TYPECODE_SHIFT) != TYPECODE_BOOLEAN) {
			throw new DecoderException("Expecting boolean attribute");
		}
		attributeRead = true;
		return ((typeByte & LENGTHCODE_MASK) != 0);
	}
Close stream cached by the ingestStreamAsNeeded method.
@throws IOException for low-level problems with the stream
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PackedDecode.java