private int computeOffset(int offset) throws MemoryAccessException {
		int bufOffset = baseOffset + offset;
		if (offset > 0 && bufOffset < baseOffset) {
			throw new MemoryAccessException(
				"Invalid WrappedMemBuffer, offset would wrap underlying memory buffer");
		}
		if (offset < 0 && bufOffset > baseOffset) {
			throw new MemoryAccessException(
				"Invalid WrappedMemBuffer offset, offset would wrap underlying memory buffer");
		}
		return bufOffset;
	}
Compute offset into original memBuffer, making sure the offset doesn't wrap 
@param offset the offset relative to the baseOffset.
@return the offset relative to the original memBuffer.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/WrappedMemBuffer.java