def METHOD_NAME(self, offset: int, size: int, value: int):
    if offset == self.struct.ISR.offset:
        return
    elif offset == self.struct.IFCR.offset:
        self.instance.ISR &= ~value
    else:
        data = (value).to_bytes(size, byteorder='little')
        ctypes.memmove(ctypes.addressof(self.instance) + offset, data, size)