@Override
	public long readUnsignedInteger() throws DecoderException {
		byte header1 = curPos.getNextByte();
		if ((header1 & HEADEREXTEND_MASK) != 0) {
			curPos.getNextByte();
		}
		byte typeByte = curPos.getNextByte();
		int typeCode = typeByte >> TYPECODE_SHIFT;
		long res;
		if (typeCode == TYPECODE_UNSIGNEDINT) {
			res = readInteger(typeByte & 0xf);
		}
		else {
			skipAttributeRemaining(typeByte);
			throw new DecoderException("Expecting unsigned integer attribute");
		}
		attributeRead = true;
		return res;
	}
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