public static SequenceNumber decode(Decoder decoder) throws DecoderException {
		int el = decoder.openElement(ELEM_SEQNUM);
		int uniq = -1;
		for (;;) {
			int attribId = decoder.getNextAttributeId();
			if (attribId == 0) {
				break;
			}
			else if (attribId == ATTRIB_UNIQ.id()) {
				uniq = (int) decoder.readUnsignedInteger();
			}
		}
		AddressSpace spc = decoder.readSpace(ATTRIB_SPACE);
		long offset = decoder.readUnsignedInteger(ATTRIB_OFFSET);
		decoder.closeElement(el);
		return new SequenceNumber(spc.getAddress(offset), uniq);
	}
Decode a new Sequence number from the stream

@param decoder is the stream decoder

@return new sequence number
@throws DecoderException for an invalid encoding
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/SequenceNumber.java