@Override
	public byte getByte(int offset) throws MemoryAccessException {
		// no buffering, just get the byte
		if (buffer.length == 0) {
			return memBuffer.getByte(computeOffset(offset));
		}

		// byte found in buffer
		if ((offset >= minOffset) && (offset <= maxOffset)) {
			return buffer[offset - minOffset];
		}

		fillBuffer(offset);

		return buffer[0];
	}
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