protected int computeElementLength(RVal addr) {
		DataType pType = addr.getType();
		if (!(pType instanceof Pointer)) {
			throw new StructuredSleighError("Index requires pointer type. Got " + addr);
		}
		DataType eType = ((Pointer) pType).getDataType();
		return eType.getLength();
	}
Compute the length (in bytes) of an element of a pointer to an array

@param addr the value of the pointer
@return the length of one element
Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/StructuredSleigh.java