public int getOffset(MemBuffer buf, int off) throws Exception {
		int o = off + offset;  // usually we just add the offset to the incoming off.
		
		// but if this Offset is relative to an Operand, then we have to add the
		// length of that operand.
		if (relTo != null) o += relTo.length(buf, off);

		return o;
	}
Method getOffset.
@param buf - a MemBuffer of bytes to parse
@param off - offset into the MemBuffer at which to start
@return int - offset into the MemBuffer to which this Offset object points
						given the bytes in the MemBuffer.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/generic/Offset.java