@Override
	public int peekElement() throws DecoderException {
		byte header1 = endPos.getByte();
		if ((header1 & HEADER_MASK) != ELEMENT_START) {
			return 0;
		}
		int id = header1 & ELEMENTID_MASK;
		if ((header1 & HEADEREXTEND_MASK) != 0) {
			id <<= RAWDATA_BITSPERBYTE;
			id |= (endPos.getBytePlus1() & RAWDATA_MASK);
		}
		return id;
	}
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