def _validate_offset(self, offset, length):
        if (offset+length) > self._aligned_size:
            raise ValueError("Offset out of bounds.")
dataset/ETHPy150Open vsergeev/python-periphery/periphery/mmio.py/MMIO._validate_offset/original