def _copy_selected_bytes(self) -> None:
        """
        Copy selected bytes to view-only clipboard.
        """
        sel = self.inner_widget.hex.get_selection()
        if sel is None:
            self._clipboard = None
            return

        minaddr, maxaddr = sel
        num_bytes_selected = maxaddr - minaddr + 1

        self._clipboard = bytearray(num_bytes_selected)
        for addr in range(minaddr, maxaddr + 1):
            d = self.project_memory_read_func(addr)  # FIXME: Support multibyte read
            if isinstance(d, int):
                self._clipboard[addr - minaddr] = d

        Copy selected bytes to view-only clipboard.
        
angrmanagement/ui/views/hex_view.py